mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding omitted reference operator.
This commit is contained in:
parent
63cd1a3326
commit
67ccac1f57
1 changed files with 2 additions and 1 deletions
|
@ -657,7 +657,7 @@ class Router {
|
|||
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 @@ class Router {
|
|||
if (!empty($extension) && substr($output, -1) === '/') {
|
||||
$output = substr($output, 0, -1);
|
||||
}
|
||||
|
||||
return $output . $extension . $self->queryString($q, array(), $escape) . $frag;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue