From 733392f72f14c83a8ff26365f302eb132b9febec Mon Sep 17 00:00:00 2001 From: Phill Sparks Date: Sat, 28 Jan 2012 20:03:29 +0000 Subject: [PATCH] Really default location to bundle name. --- laravel/bundle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/bundle.php b/laravel/bundle.php index 770be6f2..19eb5269 100644 --- a/laravel/bundle.php +++ b/laravel/bundle.php @@ -33,7 +33,7 @@ class Bundle { */ public static function register($bundle, $config = array()) { - $defaults = array('location' => $bundle, 'handles' => null, 'auto' => false); + $defaults = array('handles' => null, 'auto' => false); // If the given config is actually a string, we will assume it is a location // and convert it to an array so that the developer may conveniently add @@ -45,7 +45,7 @@ public static function register($bundle, $config = array()) if ( ! isset($config['location'])) { - throw new \Exception("Location not set for bundle [$bundle]"); + $config['location'] = $bundle; } // We will trim the trailing slash from the location and add it back so