mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing params that are not part of $url.
This commit is contained in:
parent
4a81017f9d
commit
8ebd3ed410
1 changed files with 6 additions and 4 deletions
|
@ -818,12 +818,14 @@ class Router {
|
|||
}
|
||||
}
|
||||
$plugin = false;
|
||||
|
||||
if (array_key_exists('plugin', $url)) {
|
||||
$plugin = $url['plugin'];
|
||||
}
|
||||
|
||||
$url = array_merge(array('controller' => $params['controller'], 'plugin' => $params['plugin']), Set::filter($url, true));
|
||||
$url = array_merge(
|
||||
array('controller' => $params['controller'], 'plugin' => $params['plugin']),
|
||||
Set::filter($url, true)
|
||||
);
|
||||
|
||||
if ($plugin !== false) {
|
||||
$url['plugin'] = $plugin;
|
||||
|
@ -854,7 +856,7 @@ class Router {
|
|||
|
||||
$named = $args = array();
|
||||
$skip = array_merge(
|
||||
array('bare', 'action', 'controller', 'plugin', 'ext', '?', '#', 'prefix'),
|
||||
array('bare', 'action', 'controller', 'plugin', 'prefix'),
|
||||
$_this->__prefixes
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue