tweak bundle:assets.

This commit is contained in:
Taylor Otwell
2012-02-17 08:31:17 -06:00
parent e828b6c0c3
commit 2296f63b8f

View File

@@ -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().'/';
}