Merge pull request #442 from nextcloud/fix-maintenance-mode-9
[stable9] Fix maintenance mode
This commit is contained in:
commit
1681433696
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue