Simple formatting tweaks to the URL class.

This commit is contained in:
Taylor Otwell 2011-11-29 16:36:55 -06:00
parent 9e46cadab3
commit d22f209775
1 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,6 @@ public static function base()
/**
* Generate an application URL.
*
* If the given URL is already well-formed, it will be returned unchanged.
*
* <code>
* // Create a URL to a location within the application
* $url = URL::to('user/profile');
@ -172,7 +170,9 @@ public static function to_secure_route($name, $parameters = array())
*/
public static function to_action($action, $parameters = array(), $https = false)
{
return static::to(str_replace(array('.', '@'), '/', $action).'/'.implode('/', $parameters), $https);
$action = str_replace(array('.', '@'), '/', $action);
return static::to($action.'/'.implode('/', $parameters), $https);
}
/**