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
1 changed files with 2 additions and 0 deletions

View File

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