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:
nate 2006-11-22 16:33:50 +00:00
parent 2ab7e5120d
commit b11e215827

View file

@ -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++;
} }