summaryrefslogtreecommitdiffstats
path: root/lib/private/templatelayout.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-26 09:05:10 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-26 09:05:10 +0100
commit2ecc202843282e223acca93d8302979aed35a9e1 (patch)
tree1f2780167294340e9f05633fc16765cba523e6ed /lib/private/templatelayout.php
parentce753231eb3ed36a2f5250a2b9cc118fad8dad37 (diff)
downloadnextcloud-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.php13
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();