From: Bart Visscher Date: Sun, 3 Mar 2013 22:03:47 +0000 (+0100) Subject: Check maintenance mode before loading apps in route matcher X-Git-Tag: v5.0.0RC2~26^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a2d6b27170a60efeebd57a82365c0f99f49e0ada;p=nextcloud-server.git Check maintenance mode before loading apps in route matcher --- diff --git a/lib/base.php b/lib/base.php index f70496912df..98a72cb9018 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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) {