Browse Source

null should return default bundle path.

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

+ 2 - 0
laravel/bundle.php

@@ -242,6 +242,8 @@ class Bundle {
 	 */
 	public static function path($bundle)
 	{
+		if (is_null($bundle)) return static::path(DEFAULT_BUNDLE);
+
 		return ($bundle == DEFAULT_BUNDLE) ? path('app') : static::location($bundle);
 	}