diff options
author | Joas Schilling <coding@schilljs.com> | 2016-07-19 09:54:42 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-07-19 09:54:42 +0200 |
commit | 80168613bed240fc507c7d1cae311aa442d734dc (patch) | |
tree | 182901c03cf5d7a46cd8e386bb93e3d36b0a5dae /lib | |
parent | 4a963c21fff251a5ea105e6ec50e6d87dca1654e (diff) | |
download | nextcloud-server-80168613bed240fc507c7d1cae311aa442d734dc.tar.gz nextcloud-server-80168613bed240fc507c7d1cae311aa442d734dc.zip |
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.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index d69e384ad75..eb2c26415bc 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -620,7 +620,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'), |