added comment to url class.

This commit is contained in:
Taylor Otwell 2011-11-16 22:44:15 -06:00
parent 466ccdb96c
commit a1b3ba7538
1 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,9 @@ public static function to_asset($url, $https = null)
$url = static::to($url, $https);
// Since assets are not served by Laravel, we do not need to come through
// the front controller. We'll remove the application index specified in
// the application configuration from the generated URL.
if (($index = Config::$items['application']['index']) !== '')
{
$url = str_replace($index.'/', '', $url);