mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing call to RouterRoute::compile()
This commit is contained in:
parent
61b70f1b44
commit
cc1ba32f50
1 changed files with 2 additions and 2 deletions
|
@ -317,8 +317,9 @@ class Router {
|
||||||
if ($named === true || $named === false) {
|
if ($named === true || $named === false) {
|
||||||
$options = array_merge(array('default' => $named, 'reset' => true, 'greedy' => $named), $options);
|
$options = array_merge(array('default' => $named, 'reset' => true, 'greedy' => $named), $options);
|
||||||
$named = array();
|
$named = array();
|
||||||
}
|
} else {
|
||||||
$options = array_merge(array('default' => false, 'reset' => false, 'greedy' => true), $options);
|
$options = array_merge(array('default' => false, 'reset' => false, 'greedy' => true), $options);
|
||||||
|
}
|
||||||
|
|
||||||
if ($options['reset'] == true || $self->named['rules'] === false) {
|
if ($options['reset'] == true || $self->named['rules'] === false) {
|
||||||
$self->named['rules'] = array();
|
$self->named['rules'] = array();
|
||||||
|
@ -432,7 +433,6 @@ class Router {
|
||||||
|
|
||||||
for ($i = 0, $len = count($self->routes); $i < $len; $i++) {
|
for ($i = 0, $len = count($self->routes); $i < $len; $i++) {
|
||||||
$route =& $self->routes[$i];
|
$route =& $self->routes[$i];
|
||||||
$route->compile();
|
|
||||||
if (($r = $route->parse($url)) !== false) {
|
if (($r = $route->parse($url)) !== false) {
|
||||||
$self->__currentRoute[] =& $route;
|
$self->__currentRoute[] =& $route;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue