Merge pull request #21901 from owncloud/fix-setup

Fix setup page
This commit is contained in:
Thomas Müller 2016-01-26 11:42:55 +01:00
commit 3da78c8f1c
1 changed files with 8 additions and 5 deletions

View File

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