null should return default bundle path.

This commit is contained in:
Taylor Otwell
2012-02-16 13:02:40 -06:00
parent 86102ac417
commit 5cfe371360

View File

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