diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-03-03 23:03:47 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-03-03 23:15:18 +0100 |
commit | a2d6b27170a60efeebd57a82365c0f99f49e0ada (patch) | |
tree | bc12b0a6ccc284c85750bf4fe5ab1c4ac13813bf /lib/base.php | |
parent | 0488968443ee6d94f0695cb5189f5ea9b4d343b3 (diff) | |
download | nextcloud-server-a2d6b27170a60efeebd57a82365c0f99f49e0ada.tar.gz nextcloud-server-a2d6b27170a60efeebd57a82365c0f99f49e0ada.zip |
Check maintenance mode before loading apps in route matcher
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 4 |
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) { |