Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/private/legacy/defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
class OC_Defaults {

private $theme;
private $l;

private $defaultEntity;
private $defaultName;
Expand All @@ -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 */
Expand All @@ -65,8 +64,8 @@ public function __construct() {
$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';

Expand Down