aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
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/public
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/public')
-rw-r--r--lib/public/Defaults.php4
-rw-r--r--lib/public/Mail/IEMailTemplate.php3
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/public/Defaults.php b/lib/public/Defaults.php
index af7a1567571..afb606febf6 100644
--- a/lib/public/Defaults.php
+++ b/lib/public/Defaults.php
@@ -137,8 +137,8 @@ class Defaults {
* @return string
* @since 6.0.0
*/
- public function getSlogan() {
- return $this->defaults->getSlogan();
+ public function getSlogan(?string $lang = null) {
+ return $this->defaults->getSlogan($lang);
}
/**
diff --git a/lib/public/Mail/IEMailTemplate.php b/lib/public/Mail/IEMailTemplate.php
index 8950f18e31c..70046d5c508 100644
--- a/lib/public/Mail/IEMailTemplate.php
+++ b/lib/public/Mail/IEMailTemplate.php
@@ -140,10 +140,11 @@ interface IEMailTemplate {
* Adds a logo and a text to the footer. <br> in the text will be replaced by new lines in the plain text email
*
* @param string $text If the text is empty the default "Name - Slogan<br>This is an automatically sent email" will be used
+ * @param string $lang Optional language to set the default footer in
*
* @since 12.0.0
*/
- public function addFooter(string $text = '');
+ public function addFooter(string $text = '', ?string $lang = null);
/**
* Returns the rendered email subject as string