Fix typo that removed '$' from '$key'

This commit is contained in:
Melvin.Ross@gmail.com 2014-01-24 16:33:59 -06:00
parent 8d6814e63f
commit 83f37e48a9

View file

@ -297,7 +297,7 @@ class CakeRoute {
$separatorIsPresent = strpos($param, $namedConfig['separator']) !== false;
if ((!isset($this->options['named']) || !empty($this->options['named'])) && $separatorIsPresent) {
list($key, $val) = explode($namedConfig['separator'], $param, 2);
$key = key;
$key = $key;
$val = $val;
$hasRule = isset($rules[$key]);
$passIt = (!$hasRule && !$greedy) || ($hasRule && !$this->_matchNamed($val, $rules[$key], $context));