diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-03-31 14:02:39 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-04-18 11:37:05 +0200 |
commit | 7550043371db98433a2eecb0f0baa9a0640a52c7 (patch) | |
tree | b7552fb2ffe173a79b7547250b14ebfa660ba588 /lib/private/legacy/defaults.php | |
parent | 73ef2f3e868fce6ce0be46186136f49f2a96aea8 (diff) | |
download | nextcloud-server-7550043371db98433a2eecb0f0baa9a0640a52c7.tar.gz nextcloud-server-7550043371db98433a2eecb0f0baa9a0640a52c7.zip |
Provide the proper language to the mailer
Else we can't properly translate the footer in the recipients e-mail
language.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/legacy/defaults.php')
-rw-r--r-- | lib/private/legacy/defaults.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/legacy/defaults.php b/lib/private/legacy/defaults.php index 73443adb031..aaa70475611 100644 --- a/lib/private/legacy/defaults.php +++ b/lib/private/legacy/defaults.php @@ -215,12 +215,12 @@ class OC_Defaults { * Returns slogan * @return string slogan */ - public function getSlogan() { + public function getSlogan(?string $lang = null) { if ($this->themeExist('getSlogan')) { - return $this->theme->getSlogan(); + return $this->theme->getSlogan($lang); } else { if ($this->defaultSlogan === null) { - $l10n = \OC::$server->getL10N('lib'); + $l10n = \OC::$server->getL10N('lib', $lang); $this->defaultSlogan = $l10n->t('a safe home for all your data'); } return $this->defaultSlogan; |