Skip to content

Commit 5ee6e5b

Browse files
committed
Use OC_Util::getVersion instead of getSystemValue
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 6016d45 commit 5ee6e5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/legacy/defaults.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function __construct() {
6464
$this->defaultiTunesAppId = $config->getSystemValue('customclient_ios_appid', '1125420102');
6565
$this->defaultAndroidClientUrl = $config->getSystemValue('customclient_android', 'https://play.google.com/store/apps/details?id=com.nextcloud.client');
6666
$this->defaultDocBaseUrl = 'https://docs.nextcloud.com';
67-
$this->defaultDocVersion = substr($config->getSystemValue('version', '16.0.0.0'), 0, 2); // used to generate doc links
67+
$this->defaultDocVersion = \OC_Util::getVersion()[0]; // used to generate doc links
6868
$this->defaultSlogan = $l10n->t('a safe home for all your data');
6969
$this->defaultColorPrimary = '#0082c9';
7070
$this->defaultTextColorPrimary = '#ffffff';

0 commit comments

Comments
 (0)