diff --git a/system/loader.php b/system/loader.php index 1a3f2c41..445c7eac 100644 --- a/system/loader.php +++ b/system/loader.php @@ -7,21 +7,21 @@ class Loader { * * @var array */ - private static $paths = array(BASE_PATH, MODEL_PATH, LIBRARY_PATH); + public static $paths = array(BASE_PATH, MODEL_PATH, LIBRARY_PATH); /** * All of the class aliases. * * @var array */ - private static $aliases = array(); + public static $aliases = array(); /** * All of the active modules. * * @var array */ - private static $modules = array(); + public static $modules = array(); /** * Bootstrap the auto-loader. diff --git a/system/view.php b/system/view.php index c03e310d..68da356c 100644 --- a/system/view.php +++ b/system/view.php @@ -108,7 +108,7 @@ class View { */ private function compose() { - if (is_null(static::$composers[$this->module])) + if ( ! isset(static::$composers[$this->module])) { static::$composers[$this->module] = (file_exists($path = $this->path.'composers'.EXT)) ? require $path : array(); }