diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-12-10 15:03:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 15:03:42 +0100 |
commit | 5a9fc01ea64d6da2a5fc9d5148f7d823b59fd8a4 (patch) | |
tree | 6cb9edaa47eb46d55983e33b45c4d24dd4ec6890 /lib | |
parent | 39f718b765bcfb02689e241510b33190f5c92ea3 (diff) | |
parent | 5ee6e5b8c6106438d5a902d90ab269de0ae0eaf7 (diff) | |
download | nextcloud-server-5a9fc01ea64d6da2a5fc9d5148f7d823b59fd8a4.tar.gz nextcloud-server-5a9fc01ea64d6da2a5fc9d5148f7d823b59fd8a4.zip |
Merge pull request #12896 from nextcloud/bugfix/12894-use-version-doclink
Use version from config to generate doclink
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/defaults.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/private/legacy/defaults.php b/lib/private/legacy/defaults.php index 0c95c1b81b7..d313366abe7 100644 --- a/lib/private/legacy/defaults.php +++ b/lib/private/legacy/defaults.php @@ -36,7 +36,6 @@ class OC_Defaults { private $theme; - private $l; private $defaultEntity; private $defaultName; @@ -53,7 +52,7 @@ class OC_Defaults { private $defaultTextColorPrimary; public function __construct() { - $this->l = \OC::$server->getL10N('lib'); + $l10n = \OC::$server->getL10N('lib'); $config = \OC::$server->getConfig(); $this->defaultEntity = 'Nextcloud'; /* e.g. company name, used for footers and copyright notices */ @@ -65,8 +64,8 @@ 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 = '14'; // used to generate doc links - $this->defaultSlogan = $this->l->t('a safe home for all your data'); + $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'; |