diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-01-26 09:05:10 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-01-26 09:05:10 +0100 |
commit | 2ecc202843282e223acca93d8302979aed35a9e1 (patch) | |
tree | 1f2780167294340e9f05633fc16765cba523e6ed /lib/private/templatelayout.php | |
parent | ce753231eb3ed36a2f5250a2b9cc118fad8dad37 (diff) | |
download | nextcloud-server-2ecc202843282e223acca93d8302979aed35a9e1.tar.gz nextcloud-server-2ecc202843282e223acca93d8302979aed35a9e1.zip |
Fix setup page
* fixes #21897
Diffstat (limited to 'lib/private/templatelayout.php')
-rw-r--r-- | lib/private/templatelayout.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/private/templatelayout.php b/lib/private/templatelayout.php index e14b070a7b4..7f17ab15335 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(); |