diff --git a/cake/libs/router.php b/cake/libs/router.php index 68f0076374c..97a7807c97e 100644 --- a/cake/libs/router.php +++ b/cake/libs/router.php @@ -657,7 +657,7 @@ function promote($which = null) { if (!isset($self->routes[$which])) { return false; } - $route = $self->routes[$which]; + $route =& $self->routes[$which]; unset($self->routes[$which]); array_unshift($self->routes, $route); return true; @@ -809,6 +809,7 @@ function url($url = null, $full = false) { if (!empty($extension) && substr($output, -1) === '/') { $output = substr($output, 0, -1); } + return $output . $extension . $self->queryString($q, array(), $escape) . $frag; }