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
|
@ -33,6 +33,7 @@
|
||||||
if (!class_exists('Object')) {
|
if (!class_exists('Object')) {
|
||||||
uses ('object');
|
uses ('object');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses the request URL into controller, action, and parameters.
|
* Parses the request URL into controller, action, and parameters.
|
||||||
*
|
*
|
||||||
|
@ -277,9 +278,7 @@ class Router extends Overloadable {
|
||||||
$out[$names[$ii]] = $found;
|
$out[$names[$ii]] = $found;
|
||||||
} else {
|
} else {
|
||||||
// unnamed elements go in as 'pass'
|
// unnamed elements go in as 'pass'
|
||||||
$pass = new NeatArray(explode('/', $found));
|
$out['pass'] = array_filter(explode('/', $found));
|
||||||
$pass->cleanup();
|
|
||||||
$out['pass'] = $pass->value;
|
|
||||||
}
|
}
|
||||||
$ii++;
|
$ii++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue