[BUGFIX] Fixed router paths.

This commit is contained in:
Simon Sessingø
2015-10-27 10:35:57 +01:00
parent 1843ea0594
commit f5a32cf520
+4 -1
View File
@@ -102,7 +102,10 @@ class RouterBase {
// Make sure the urls is in the right order when comparing
usort($this->controllerUrlMap, function($a, $b) {
return strcmp($a->getUrl(), $b->getUrl());
if(stripos($b->getUrl(), '{') !== false) {
return $a->getUrl();
}
return strcmp($b->getUrl(), $a->getUrl());
});
$routeNotAllowed = false;