Check maintenance mode before loading apps in route matcher
This commit is contained in:
parent
0488968443
commit
a2d6b27170
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue