]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check maintenance mode before loading apps in route matcher
authorBart Visscher <bartv@thisnet.nl>
Sun, 3 Mar 2013 22:03:47 +0000 (23:03 +0100)
committerBart Visscher <bartv@thisnet.nl>
Sun, 3 Mar 2013 22:15:18 +0000 (23:15 +0100)
lib/base.php

index f70496912df1473a50331b1f070426d488780101..98a72cb9018537aaacb1e98d8ec31efcda8f4a19 100644 (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) {