Check if server is installed

AppManager has a dependency on Nc being installed
This commit is contained in:
Lukas Reschke 2016-06-21 21:43:19 +02:00
parent 27b699bdbc
commit 89e889c832
1 changed files with 1 additions and 1 deletions

View File

@ -620,7 +620,7 @@ class Server extends ServerContainer implements IServerContainer {
return $factory->getManager();
});
$this->registerService('ThemingDefaults', function(Server $c) {
if($this->getAppManager()->isInstalled('theming')) {
if($this->getConfig()->getSystemValue('installed', false) && $this->getAppManager()->isInstalled('theming')) {
return new Template(
$this->getConfig(),
$this->getL10N('theming'),