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:
nate 2006-12-29 05:42:37 +00:00
parent ed28c3187b
commit b47906cdc1

View file

@ -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]);