mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 04:52:42 +00:00
removing unused variable, fixes #2227
This commit is contained in:
parent
bab613652a
commit
7224de962e
1 changed files with 2 additions and 5 deletions
|
@ -820,7 +820,7 @@ class Router {
|
||||||
* @see Router::url()
|
* @see Router::url()
|
||||||
*/
|
*/
|
||||||
protected static function _handleNoRoute($url) {
|
protected static function _handleNoRoute($url) {
|
||||||
$named = $args = $query = array();
|
$named = $args = array();
|
||||||
$skip = array_merge(
|
$skip = array_merge(
|
||||||
array('bare', 'action', 'controller', 'plugin', 'prefix'),
|
array('bare', 'action', 'controller', 'plugin', 'prefix'),
|
||||||
self::$_prefixes
|
self::$_prefixes
|
||||||
|
@ -847,7 +847,7 @@ class Router {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($named) && empty($args) && empty($query) && (!isset($url['action']) || $url['action'] === 'index')) {
|
if (empty($named) && empty($args) && (!isset($url['action']) || $url['action'] === 'index')) {
|
||||||
$url['action'] = null;
|
$url['action'] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -881,9 +881,6 @@ class Router {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($query)) {
|
|
||||||
$output .= Router::queryString($query);
|
|
||||||
}
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue