summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2018-12-06 21:53:52 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2018-12-07 11:42:12 +0100
commit6016d45ca906bcd5761f0a5856032caef94dc2eb (patch)
tree727f8bf3d7faf6a72f019c804793129fd9976f5b /lib
parent2bbfeea659b8219bd48b8db49d41641b2129a6dd (diff)
downloadnextcloud-server-6016d45ca906bcd5761f0a5856032caef94dc2eb.tar.gz
nextcloud-server-6016d45ca906bcd5761f0a5856032caef94dc2eb.zip
Use version to generate docversion
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/defaults.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/private/legacy/defaults.php b/lib/private/legacy/defaults.php
index 0c95c1b81b7..d2393f84ab8 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 = substr($config->getSystemValue('version', '16.0.0.0'), 0, 2); // used to generate doc links
+ $this->defaultSlogan = $l10n->t('a safe home for all your data');
$this->defaultColorPrimary = '#0082c9';
$this->defaultTextColorPrimary = '#ffffff';