Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-03-04 02:03:47 +0400
committerBart Visscher <bartv@thisnet.nl>2013-03-04 02:15:18 +0400
commita2d6b27170a60efeebd57a82365c0f99f49e0ada (patch)
treebc12b0a6ccc284c85750bf4fe5ab1c4ac13813bf /lib/base.php
parent0488968443ee6d94f0695cb5189f5ea9b4d343b3 (diff)
Check maintenance mode before loading apps in route matcher
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php4
1 files changed, 3 insertions, 1 deletions
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) {