diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-12-07 11:41:54 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-12-07 11:42:12 +0100 |
commit | 5ee6e5b8c6106438d5a902d90ab269de0ae0eaf7 (patch) | |
tree | 1e56c6fe5d03e034d6c7c83003ca77e8ec5f997d /lib | |
parent | 6016d45ca906bcd5761f0a5856032caef94dc2eb (diff) | |
download | nextcloud-server-5ee6e5b8c6106438d5a902d90ab269de0ae0eaf7.tar.gz nextcloud-server-5ee6e5b8c6106438d5a902d90ab269de0ae0eaf7.zip |
Use OC_Util::getVersion instead of getSystemValue
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/defaults.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |