Skip to content

Commit

Permalink
Merge pull request #570 from nextcloud/backport/569/stable21
Browse files Browse the repository at this point in the history
[stable21] Send the footer with the defined language
  • Loading branch information
ChristophWurst authored Mar 26, 2021
2 parents 556cc7b + 72d5bdc commit f1e6087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/DigestSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function sendDigestForUser(string $uid, int $now, string $timezone, strin
$template->addBodyListItem($l10n->n('and %n more ', 'and %n more ', $skippedCount));
}

$template->addFooter();
$template->addFooter('', $language);

$message = $this->mailer->createMessage();
$message->setTo([$user->getEMailAddress() => $user->getDisplayName()]);
Expand Down
2 changes: 1 addition & 1 deletion lib/MailQueueHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ protected function sendEmailToUser($userName, $email, $lang, $timezone, $maxTime
$template->addBodyListItem($l->n('and %n more ', 'and %n more ', $skippedCount));
}

$template->addFooter();
$template->addFooter('', $lang);

$message = $this->mailer->createMessage();
$message->setTo([$email => $user->getDisplayName()]);
Expand Down

0 comments on commit f1e6087

Please sign in to comment.