mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fix typo that removed '$' from '$key'
This commit is contained in:
parent
8d6814e63f
commit
83f37e48a9
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue