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

Fix maintenance mode
pull/448/head
Björn Schießle 10 years ago committed by GitHub
commit 8735a05d93
  1. 2
      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'),

Loading…
Cancel
Save