From 2296f63b8f52e8104f138779251ff0fb5faa67aa Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 17 Feb 2012 08:31:17 -0600 Subject: [PATCH] tweak bundle:assets. --- laravel/bundle.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/laravel/bundle.php b/laravel/bundle.php index 529efdbb..69c6ab87 100644 --- a/laravel/bundle.php +++ b/laravel/bundle.php @@ -255,6 +255,8 @@ class Bundle { */ public static function assets($bundle) { + if (is_null($bundle)) return static::assets(DEFAULT_BUNDLE); + return ($bundle != DEFAULT_BUNDLE) ? URL::base()."/bundles/{$bundle}/" : URL::base().'/'; }