mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing issue where admin revere routing was possibly unsuccessful due to differences in action param between route and url arrays. Fixes #44 and #6173
This commit is contained in:
parent
12457ac6f9
commit
bcbdb1cf1d
1 changed files with 3 additions and 0 deletions
|
@ -763,6 +763,9 @@ class Router extends Object {
|
|||
} else {
|
||||
$params = end($_this->__params);
|
||||
}
|
||||
if (isset($params['prefix']) && strpos($params['action'], $params['prefix']) === 0) {
|
||||
$params['action'] = substr($params['action'], strlen($params['prefix']) + 1);
|
||||
}
|
||||
}
|
||||
$path = array('base' => null);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue