From 5ee6e5b8c6106438d5a902d90ab269de0ae0eaf7 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Fri, 7 Dec 2018 11:41:54 +0100 Subject: Use OC_Util::getVersion instead of getSystemValue Signed-off-by: Daniel Kesselberg --- lib/private/legacy/defaults.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/legacy') diff --git a/lib/private/legacy/defaults.php b/lib/private/legacy/defaults.php index d2393f84ab8..d313366abe7 100644 --- a/lib/private/legacy/defaults.php +++ b/lib/private/legacy/defaults.php @@ -64,7 +64,7 @@ class OC_Defaults { $this->defaultiTunesAppId = $config->getSystemValue('customclient_ios_appid', '1125420102'); $this->defaultAndroidClientUrl = $config->getSystemValue('customclient_android', 'https://play.google.com/store/apps/details?id=com.nextcloud.client'); $this->defaultDocBaseUrl = 'https://docs.nextcloud.com'; - $this->defaultDocVersion = substr($config->getSystemValue('version', '16.0.0.0'), 0, 2); // used to generate doc links + $this->defaultDocVersion = \OC_Util::getVersion()[0]; // used to generate doc links $this->defaultSlogan = $l10n->t('a safe home for all your data'); $this->defaultColorPrimary = '#0082c9'; $this->defaultTextColorPrimary = '#ffffff'; -- cgit v1.2.3