mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Remove duplicate code.
The conditions for persistParams() work should be self contained. Remove this duplication.
This commit is contained in:
parent
8209a298f7
commit
19ac39963a
1 changed files with 1 additions and 3 deletions
|
@ -848,9 +848,7 @@ class Router {
|
|||
for ($i = 0, $len = count(self::$routes); $i < $len; $i++) {
|
||||
$originalUrl = $url;
|
||||
|
||||
if (isset(self::$routes[$i]->options['persist'], $params)) {
|
||||
$url = self::$routes[$i]->persistParams($url, $params);
|
||||
}
|
||||
|
||||
if ($match = self::$routes[$i]->match($url)) {
|
||||
$output = trim($match, '/');
|
||||
|
|
Loading…
Reference in a new issue