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

View file

@ -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();