mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 22:32:14 +00:00
[BUGFIX] Fixed routes always matching /show/{id} when other routes are added.
This commit is contained in:
@@ -102,7 +102,7 @@ class RouterBase {
|
|||||||
|
|
||||||
// Make sure the urls is in the right order when comparing
|
// Make sure the urls is in the right order when comparing
|
||||||
usort($this->controllerUrlMap, function($a, $b) {
|
usort($this->controllerUrlMap, function($a, $b) {
|
||||||
return strcmp($b->getUrl(), $a->getUrl());
|
return strcmp($a->getUrl(), $b->getUrl());
|
||||||
});
|
});
|
||||||
|
|
||||||
$routeNotAllowed = false;
|
$routeNotAllowed = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user