mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 23:22:11 +00:00
@@ -102,6 +102,9 @@ 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) {
|
||||||
|
if(stripos($b->getUrl(), '{') !== false) {
|
||||||
|
return $a->getUrl();
|
||||||
|
}
|
||||||
return strcmp($b->getUrl(), $a->getUrl());
|
return strcmp($b->getUrl(), $a->getUrl());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user