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
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-07-19 11:23:26 +0300
committerJoas Schilling <coding@schilljs.com>2016-07-19 11:23:26 +0300
commit3024f20270c9c6f978a4464f4d85d372939b4e6a (patch)
treeaa8de39cfcf7b41282826e3b501a3acff1eaaa97 /lib
parentd35d9d246e6f1b4055cc75062bdb37f81a6a1cc4 (diff)
Fix maintenance mode
When the server is in maintenance mode, apps are not loaded. That means apps/theming/ is not in the allowed paths. So we need to check without autoloading, whether the class exists.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/server.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index 0731239e884..4add27c8d07 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -565,7 +565,7 @@ class Server extends ServerContainer implements IServerContainer {
return $factory->getManager();
});
$this->registerService('ThemingDefaults', function(Server $c) {
- if($this->getConfig()->getSystemValue('installed', false) && $this->getAppManager()->isInstalled('theming')) {
+ if(class_exists('OCA\Theming\Template', false) && $this->getConfig()->getSystemValue('installed', false) && $this->getAppManager()->isInstalled('theming')) {
return new Template(
$this->getConfig(),
$this->getL10N('theming'),