aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-03-31 14:02:39 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2020-04-16 09:04:13 +0200
commitbb4dedb0156727ebd88a3f922fedc78436d7b701 (patch)
treee1975ad11d4d3903c6c1520f93a1a398f80ac1b6 /lib/private/Share20
parent078ac97939747eec246ed105830d4643b81d994c (diff)
downloadnextcloud-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 'lib/private/Share20')
-rw-r--r--lib/private/Share20/Manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 78d79b5c4da..becf29e4cc7 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -891,9 +891,9 @@ class Manager implements IManager {
$initiatorEmail = $initiatorUser->getEMailAddress();
if ($initiatorEmail !== null) {
$message->setReplyTo([$initiatorEmail => $initiatorDisplayName]);
- $emailTemplate->addFooter($instanceName . ($this->defaults->getSlogan() !== '' ? ' - ' . $this->defaults->getSlogan() : ''));
+ $emailTemplate->addFooter($instanceName . ($this->defaults->getSlogan($l->getLanguageCode()) !== '' ? ' - ' . $this->defaults->getSlogan($l->getLanguageCode()) : ''));
} else {
- $emailTemplate->addFooter();
+ $emailTemplate->addFooter('', $l->getLanguageCode());
}
$message->useTemplate($emailTemplate);