Permalink
Browse files

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

  • Loading branch information...
1 parent 8d6814e commit 83f37e48a9e6ee9885196f210e8bcaeab970a0b8 Melvin.Ross@gmail.com committed Jan 24, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Routing/Route/CakeRoute.php
@@ -297,7 +297,7 @@ protected function _parseArgs($args, $context) {
$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));

0 comments on commit 83f37e4

Please sign in to comment.