diff --git a/lib/private/templatelayout.php b/lib/private/templatelayout.php index e14b070a7b..7f17ab1533 100644 --- a/lib/private/templatelayout.php +++ b/lib/private/templatelayout.php @@ -151,11 +151,14 @@ class TemplateLayout extends \OC_Template { // Send the language to our layouts $this->assign('language', \OC_L10N::findLanguage()); - - if(empty(self::$versionHash)) { - $v = \OC_App::getAppVersions(); - $v['core'] = implode('.', \OCP\Util::getVersion()); - self::$versionHash = md5(implode(',', $v)); + if(\OC::$server->getSystemConfig()->getValue('installed', false)) { + if (empty(self::$versionHash)) { + $v = \OC_App::getAppVersions(); + $v['core'] = implode('.', \OCP\Util::getVersion()); + self::$versionHash = md5(implode(',', $v)); + } + } else { + self::$versionHash = md5('not installed'); } $useAssetPipeline = self::isAssetPipelineEnabled();