Only load core routes for ocs and settings

This commit is contained in:
Robin Appelman 2014-03-25 13:42:47 +01:00
parent 9e89ad07c6
commit c17f415356
1 changed files with 2 additions and 1 deletions

View File

@ -178,9 +178,10 @@ class Router implements IRouter {
*/
public function match($url) {
if (substr($url, 0, 6) === '/apps/') {
// empty string / 'apps' / $app / rest of the route
list(, , $app,) = explode('/', $url, 4);
$this->loadRoutes($app);
} else if(substr($url, 0, 6) === '/core/') {
} else if(substr($url, 0, 6) === '/core/' or substr($url, 0, 5) === '/ocs/' or substr($url, 0, 10) === '/settings/') {
$this->loadRoutes('core');
} else {
$this->loadRoutes();