From e1d00672dd1ee95c7b920c9127e9adedd7ef3abe Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Thu, 13 Sep 2012 15:52:36 +0000 Subject: [PATCH] Update reference to Query --- sys/common.php | 3 --- sys/core/Controller.php | 6 ++++-- sys/db | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sys/common.php b/sys/common.php index 5e6d9c3..eb1a514 100644 --- a/sys/common.php +++ b/sys/common.php @@ -310,9 +310,6 @@ function init() // Load Database classes require_once(MM_SYS_PATH . 'db/autoload.php'); - // Load the page class - $GLOBALS['page'] = new \miniMVC\Page(); - // Map to the appropriate module/controller/function route(); } diff --git a/sys/core/Controller.php b/sys/core/Controller.php index f9ca849..47746b3 100644 --- a/sys/core/Controller.php +++ b/sys/core/Controller.php @@ -37,8 +37,10 @@ class Controller { */ public function __construct() { - // Create the page object - $this->page = $GLOBALS['page']; + if (is_null($this->page)) + { + $this->page = new Page(); + } } // -------------------------------------------------------------------------- diff --git a/sys/db b/sys/db index 1e71b22..c963dc2 160000 --- a/sys/db +++ b/sys/db @@ -1 +1 @@ -Subproject commit 1e71b225c533bada107f439106c9216982b62daa +Subproject commit c963dc29f252d2d237ceacf8300e6e3030abd584