Refactor the package class.
This commit is contained in:
parent
ddc02a829a
commit
e3785ee7ff
|
@ -19,9 +19,12 @@ public static function load($packages)
|
|||
{
|
||||
foreach ((array) $packages as $package)
|
||||
{
|
||||
if (file_exists($bootstrap = PACKAGE_PATH.$package.'/bootstrap'.EXT)) require_once $bootstrap;
|
||||
if (file_exists($bootstrap = PACKAGE_PATH.$package.'/bootstrap'.EXT))
|
||||
{
|
||||
require_once $bootstrap;
|
||||
}
|
||||
|
||||
static::$loaded[] = $package;
|
||||
static::$loaded[] = $package;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue