mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[BUGFIX] Minor bugfixes and optimisations
- Fixed getRoute sometimes not passing current loaded route. - Fixed optional parameters in some occasions not working properly.
This commit is contained in:
@@ -327,6 +327,10 @@ class RouterBase {
|
||||
return $url;
|
||||
}
|
||||
|
||||
if($controller === null && $this->loadedRoute !== null) {
|
||||
return $this->processUrl($this->loadedRoute, $this->loadedRoute->getMethod(), $parameters, $getParams);
|
||||
}
|
||||
|
||||
$c = '';
|
||||
$method = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user