Merge pull request #441 from nextcloud/fix-maintenance-mode

Fix maintenance mode
This commit is contained in:
Björn Schießle 2016-07-19 16:59:24 +02:00 committed by GitHub
commit 8735a05d93
1 changed files with 1 additions and 1 deletions

View File

@ -620,7 +620,7 @@ class Server extends ServerContainer implements IServerContainer {
return $factory->getManager(); return $factory->getManager();
}); });
$this->registerService('ThemingDefaults', function(Server $c) { $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( return new Template(
$this->getConfig(), $this->getConfig(),
$this->getL10N('theming'), $this->getL10N('theming'),