Check maintenance mode before loading apps in route matcher

This commit is contained in:
Bart Visscher 2013-03-03 23:03:47 +01:00
parent 0488968443
commit a2d6b27170
1 changed files with 3 additions and 1 deletions

View File

@ -596,7 +596,9 @@ class OC {
if (!self::$CLI) {
try {
OC_App::loadApps();
if (!OC_Config::getValue('maintenance', false)) {
OC_App::loadApps();
}
OC::getRouter()->match(OC_Request::getRawPathInfo());
return;
} catch (Symfony\Component\Routing\Exception\ResourceNotFoundException $e) {