Check package count before loading Package class.
This commit is contained in:
parent
cc9c45710b
commit
555299c353
|
@ -112,9 +112,12 @@
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Load the packages that are in the auto-loaded packages array.
|
// Load the packages that are in the auto-loaded packages array.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
require SYS_PATH.'package'.EXT;
|
if (count(Config::get('application.packages')) > 0)
|
||||||
|
{
|
||||||
|
require SYS_PATH.'package'.EXT;
|
||||||
|
|
||||||
Package::load(Config::get('application.packages'));
|
Package::load(Config::get('application.packages'));
|
||||||
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Execute the global "before" filter.
|
// Execute the global "before" filter.
|
||||||
|
|
Loading…
Reference in New Issue