Browse Source

tweak bundle:assets.

Taylor Otwell 13 years ago
parent
commit
2296f63b8f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      laravel/bundle.php

+ 2 - 0
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().'/';
 	}