[BUGFIX] Fixed routes always matching /show/{id} when other routes are added.

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