From d22f2097758fc90a8fdfab12d83d4b3a9a851271 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 29 Nov 2011 16:36:55 -0600 Subject: [PATCH] Simple formatting tweaks to the URL class. --- laravel/url.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/laravel/url.php b/laravel/url.php index 43e809fe..11805c97 100644 --- a/laravel/url.php +++ b/laravel/url.php @@ -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. - * * * // 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); } /**