allow non routable bundles to just use string values.

This commit is contained in:
Taylor Otwell
2012-01-26 16:03:25 -06:00
parent 3a3c5ba561
commit da7d076f54

View File

@@ -149,7 +149,7 @@ $bundles = require BUNDLE_PATH.'bundles'.EXT;
foreach ($bundles as $key => $value)
{
$handles = array_get($value, 'handles');
$location = (is_array($value)) ? $value['location'] : $value;
Bundle::register($key, $value['location'], $handles);
Bundle::register($key, $location, array_get($value, 'handles'));
}