From da7d076f541bce85984c83e28650088248931d59 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 26 Jan 2012 16:03:25 -0600 Subject: [PATCH] allow non routable bundles to just use string values. --- laravel/core.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/core.php b/laravel/core.php index 229fc42f..1dd61acf 100644 --- a/laravel/core.php +++ b/laravel/core.php @@ -149,7 +149,7 @@ 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')); } \ No newline at end of file