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) {
|
if (!self::$CLI) {
|
||||||
try {
|
try {
|
||||||
OC_App::loadApps();
|
if (!OC_Config::getValue('maintenance', false)) {
|
||||||
|
OC_App::loadApps();
|
||||||
|
}
|
||||||
OC::getRouter()->match(OC_Request::getRawPathInfo());
|
OC::getRouter()->match(OC_Request::getRawPathInfo());
|
||||||
return;
|
return;
|
||||||
} catch (Symfony\Component\Routing\Exception\ResourceNotFoundException $e) {
|
} catch (Symfony\Component\Routing\Exception\ResourceNotFoundException $e) {
|
||||||
|
|
Loading…
Reference in New Issue