Commit ec3e0598 authored by Taylor Otwell's avatar Taylor Otwell

fixed bug in view class module loading and made loader properties public.

parent 78903e99
...@@ -7,21 +7,21 @@ class Loader { ...@@ -7,21 +7,21 @@ class Loader {
* *
* @var array * @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. * All of the class aliases.
* *
* @var array * @var array
*/ */
private static $aliases = array(); public static $aliases = array();
/** /**
* All of the active modules. * All of the active modules.
* *
* @var array * @var array
*/ */
private static $modules = array(); public static $modules = array();
/** /**
* Bootstrap the auto-loader. * Bootstrap the auto-loader.
......
...@@ -108,7 +108,7 @@ class View { ...@@ -108,7 +108,7 @@ class View {
*/ */
private function compose() 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(); static::$composers[$this->module] = (file_exists($path = $this->path.'composers'.EXT)) ? require $path : array();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment