mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Refactoring Router to eliminate usage of NeatArray
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3894 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
2ab7e5120d
commit
b11e215827
1 changed files with 5 additions and 6 deletions
|
@ -30,9 +30,10 @@
|
|||
* Included libraries.
|
||||
*
|
||||
*/
|
||||
if (!class_exists('Object')) {
|
||||
uses ('object');
|
||||
}
|
||||
if (!class_exists('Object')) {
|
||||
uses ('object');
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses the request URL into controller, action, and parameters.
|
||||
*
|
||||
|
@ -277,9 +278,7 @@ class Router extends Overloadable {
|
|||
$out[$names[$ii]] = $found;
|
||||
} else {
|
||||
// unnamed elements go in as 'pass'
|
||||
$pass = new NeatArray(explode('/', $found));
|
||||
$pass->cleanup();
|
||||
$out['pass'] = $pass->value;
|
||||
$out['pass'] = array_filter(explode('/', $found));
|
||||
}
|
||||
$ii++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue