Use array_keys instead of array_flip

This commit is contained in:
Mike Gibson 2014-03-10 13:29:43 +00:00
parent 17652575f3
commit 9be789d371

View file

@ -522,7 +522,7 @@ class CakeRoute {
$lengths = array_map('strlen', $this->keys); $lengths = array_map('strlen', $this->keys);
$flipped = array_combine($this->keys, $lengths); $flipped = array_combine($this->keys, $lengths);
arsort($flipped); arsort($flipped);
$keys = array_flip($flipped); $keys = array_keys($flipped);
foreach ($keys as $key) { foreach ($keys as $key) {
$string = null; $string = null;