Remove duplicate code.

The conditions for persistParams() work should be self contained. Remove
this duplication.
This commit is contained in:
mark_story 2013-08-02 13:30:31 -04:00
parent 8209a298f7
commit 19ac39963a

View file

@ -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);
}
$url = self::$routes[$i]->persistParams($url, $params);
if ($match = self::$routes[$i]->match($url)) {
$output = trim($match, '/');