mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 10:02:12 +00:00
[BUGFIX] Bugfixes and optimisations
- Fixed issue causing nested groups not merging namespace correctly. - Fixed issue causing longer urls (for example: /route) to have higher priority than (/route/match) in some cases.
This commit is contained in:
@@ -93,7 +93,7 @@ class RouterGroup extends RouterEntry {
|
||||
* @return self
|
||||
*/
|
||||
public function addSettings(array $settings = null) {
|
||||
if(isset($settings['namespace'])) {
|
||||
if($this->getNamespace() !== null && isset($settings['namespace'])) {
|
||||
unset($settings['namespace']);
|
||||
}
|
||||
if(is_array($settings)) {
|
||||
|
||||
Reference in New Issue
Block a user