Skip to content
Snippets Groups Projects
Commit 654d5af3 authored by Tom Needham's avatar Tom Needham
Browse files

Merge pull request #8027 from owncloud/routes-ocs

Load all routes when matching an ocs route
parents 6cc578d1 db95f49b
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment