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-16 09:04:13 +0200 |
commit | bb4dedb0156727ebd88a3f922fedc78436d7b701 (patch) | |
tree | e1975ad11d4d3903c6c1520f93a1a398f80ac1b6 /apps/theming | |
parent | 078ac97939747eec246ed105830d4643b81d994c (diff) | |
download | nextcloud-server-bb4dedb0156727ebd88a3f922fedc78436d7b701.tar.gz nextcloud-server-bb4dedb0156727ebd88a3f922fedc78436d7b701.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 'apps/theming')
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 059dc55cb99..f0af45ba889 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -145,8 +145,8 @@ class ThemingDefaults extends \OC_Defaults { return $this->config->getAppValue('theming', 'url', $this->url); } - public function getSlogan() { - return \OCP\Util::sanitizeHTML($this->config->getAppValue('theming', 'slogan', parent::getSlogan())); + public function getSlogan(?string $lang = null) { + return \OCP\Util::sanitizeHTML($this->config->getAppValue('theming', 'slogan', parent::getSlogan($lang))); } public function getImprintUrl() { |