mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
Adding fix for Ticket #1823
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4229 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
ed28c3187b
commit
b47906cdc1
1 changed files with 2 additions and 1 deletions
|
@ -239,12 +239,13 @@ class Dispatcher extends Object {
|
|||
}
|
||||
}
|
||||
}
|
||||
if($controller->namedArgs === true || $named = true) {
|
||||
if($controller->namedArgs === true || $named == true) {
|
||||
$c = count($controller->passedArgs);
|
||||
for ($i = $c - 1; $i > -1; $i--) {
|
||||
if (isset($controller->passedArgs[$i]) && strpos($controller->passedArgs[$i], $controller->argSeparator) !== false) {
|
||||
list($argKey, $argVal) = explode($controller->argSeparator, $controller->passedArgs[$i]);
|
||||
$controller->passedArgs[$argKey] = $argVal;
|
||||
$controller->namedArgs = array();
|
||||
$controller->namedArgs[$argKey] = $argVal;
|
||||
unset($controller->passedArgs[$i]);
|
||||
unset($params['pass'][$i]);
|
||||
|
|
Loading…
Add table
Reference in a new issue