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

View File

@@ -112,9 +112,12 @@ Routing\Filter::register(require APP_PATH.'filters'.EXT);
// --------------------------------------------------------------
// Load the packages that are in the auto-loaded packages array.
// --------------------------------------------------------------
if (count(Config::get('application.packages')) > 0)
{
require SYS_PATH.'package'.EXT;
Package::load(Config::get('application.packages'));
}
// --------------------------------------------------------------
// Execute the global "before" filter.