Update reference to Query

This commit is contained in:
Timothy Warren 2012-09-13 15:52:36 +00:00
parent f666915536
commit e1d00672dd
3 changed files with 5 additions and 6 deletions

View File

@ -310,9 +310,6 @@ function init()
// Load Database classes // Load Database classes
require_once(MM_SYS_PATH . 'db/autoload.php'); require_once(MM_SYS_PATH . 'db/autoload.php');
// Load the page class
$GLOBALS['page'] = new \miniMVC\Page();
// Map to the appropriate module/controller/function // Map to the appropriate module/controller/function
route(); route();
} }

View File

@ -37,8 +37,10 @@ class Controller {
*/ */
public function __construct() public function __construct()
{ {
// Create the page object if (is_null($this->page))
$this->page = $GLOBALS['page']; {
$this->page = new Page();
}
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------

2
sys/db

@ -1 +1 @@
Subproject commit 1e71b225c533bada107f439106c9216982b62daa Subproject commit c963dc29f252d2d237ceacf8300e6e3030abd584