Commit 555299c3 by Taylor Otwell

Check package count before loading Package class.

parent cc9c4571
...@@ -112,9 +112,12 @@ Routing\Filter::register(require APP_PATH.'filters'.EXT); ...@@ -112,9 +112,12 @@ Routing\Filter::register(require APP_PATH.'filters'.EXT);
// -------------------------------------------------------------- // --------------------------------------------------------------
// 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.
......
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