Load all routes when matching an ocs route
This commit is contained in:
parent
54783550e8
commit
db95f49b7e
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ class Router implements IRouter {
|
|||
// empty string / 'apps' / $app / rest of the route
|
||||
list(, , $app,) = explode('/', $url, 4);
|
||||
$this->loadRoutes($app);
|
||||
} else if (substr($url, 0, 6) === '/core/' or substr($url, 0, 5) === '/ocs/' or substr($url, 0, 10) === '/settings/') {
|
||||
} else if (substr($url, 0, 6) === '/core/' or substr($url, 0, 10) === '/settings/') {
|
||||
$this->loadRoutes('core');
|
||||
} else {
|
||||
$this->loadRoutes();
|
||||
|
|
Loading…
Reference in a new issue