From bb4dedb0156727ebd88a3f922fedc78436d7b701 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 31 Mar 2020 14:02:39 +0200 Subject: 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 --- lib/public/Mail/IEMailTemplate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/public/Mail') 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.
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
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 -- cgit v1.2.3