Merge pull request #442 from nextcloud/fix-maintenance-mode-9

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

View File

@ -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'),