Preserve keys when sorting parameters when generatings urls

remotes/origin/ldap_group_count
Robin Appelman 2014-04-29 11:55:19 +07:00
parent b95aa43a5d
commit 77e6278d09
1 changed files with 1 additions and 1 deletions

@ -31,7 +31,7 @@ class CachingRouter extends Router {
* @return string
*/
public function generate($name, $parameters = array(), $absolute = false) {
sort($parameters);
asort($parameters);
$key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . $name . json_encode($parameters) . intval($absolute);
if ($this->cache->hasKey($key)) {
return $this->cache->get($key);