From 320a63ffe48599ed9c5d9f5aec15705dbc2f481c Mon Sep 17 00:00:00 2001 From: Mormegil Date: Mon, 21 Sep 2015 14:58:37 +0200 Subject: [PATCH] Translate password reset e-mail subject into proper language The password reset e-mail should have the subject line localized into the same language as the body, which is the preferred UI language set by the user, not the content language of the wiki. Bug: T113227 Change-Id: I3bb1e1035004a329b934afb2fbfbd407685c6e8c --- includes/specials/SpecialPasswordReset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialPasswordReset.php b/includes/specials/SpecialPasswordReset.php index 8cad61683b..9e72807f0b 100644 --- a/includes/specials/SpecialPasswordReset.php +++ b/includes/specials/SpecialPasswordReset.php @@ -271,7 +271,7 @@ class SpecialPasswordReset extends FormSpecialPage { round( $this->getConfig()->get( 'NewPasswordExpiry' ) / 86400 ) ); - $title = $this->msg( 'passwordreset-emailtitle' ); + $title = $this->msg( 'passwordreset-emailtitle' )->inLanguage( $userLanguage ); $this->result = $firstUser->sendMail( $title->text(), $this->email->text() ); -- 2.20.1