mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[BUGFIX] Fixed router paths.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user