Skip to content

Commit e4d1432

Browse files
committed
Fixes bug in controller and globals base classes
1 parent 1df125b commit e4d1432

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

system/core/controller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Controller extends Router
1616
*/
1717
public function route()
1818
{
19+
Globals::init();
1920
$app = Globals::app();
2021
$controller = Globals::controller();
2122
if ($app == null) $app = 'init';

system/core/globals.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Globals extends DataStore
7171
/**
7272
* Constructs the object setting its properties.
7373
*/
74-
public function init()
74+
public static function init()
7575
{
7676
self::$filePath = Config::$filePath;
7777
self::$webPath = Config::$webPath;

0 commit comments

Comments
 (0)