mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Applying optimization to Router::connect() from 'robustsolution' Fixes #302
This commit is contained in:
parent
ffbd6f5dc8
commit
3712072531
1 changed files with 1 additions and 0 deletions
|
@ -232,6 +232,7 @@ class Router {
|
||||||
foreach ($_this->__prefixes as $prefix) {
|
foreach ($_this->__prefixes as $prefix) {
|
||||||
if (isset($default[$prefix])) {
|
if (isset($default[$prefix])) {
|
||||||
$default['prefix'] = $prefix;
|
$default['prefix'] = $prefix;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isset($default['prefix'])) {
|
if (isset($default['prefix'])) {
|
||||||
|
|
Loading…
Reference in a new issue