Commit d22f2097 by Taylor Otwell

Simple formatting tweaks to the URL class.

parent 9e46cada
...@@ -30,8 +30,6 @@ class URL { ...@@ -30,8 +30,6 @@ class URL {
/** /**
* Generate an application URL. * Generate an application URL.
* *
* If the given URL is already well-formed, it will be returned unchanged.
*
* <code> * <code>
* // Create a URL to a location within the application * // Create a URL to a location within the application
* $url = URL::to('user/profile'); * $url = URL::to('user/profile');
...@@ -172,7 +170,9 @@ class URL { ...@@ -172,7 +170,9 @@ class URL {
*/ */
public static function to_action($action, $parameters = array(), $https = false) 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);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment