Check package count before loading Package class.

This commit is contained in:
Taylor Otwell 2011-08-05 11:52:22 -05:00
parent cc9c45710b
commit 555299c353
1 changed files with 5 additions and 2 deletions

View File

@ -112,9 +112,12 @@
// --------------------------------------------------------------
// 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.