mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed prefixed action prefix reverse routing match. One liner.
This commit is contained in:
parent
9691e54248
commit
7fd13d406c
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ class CakeRoute {
|
|||
$prefixed = $params['prefix'] . '_';
|
||||
}
|
||||
if (isset($prefixed, $params['action']) && strpos($params['action'], $prefixed) === 0) {
|
||||
$params['action'] = substr($params['action'], strlen($prefixed) * -1);
|
||||
$params['action'] = substr($params['action'], strlen($prefixed) );
|
||||
unset($params['prefix']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue