Translate password reset e-mail subject into proper language
authorMormegil <mormegil@centrum.cz>
Mon, 21 Sep 2015 12:58:37 +0000 (14:58 +0200)
committerMormegil <mormegil@centrum.cz>
Mon, 21 Sep 2015 13:03:18 +0000 (15:03 +0200)
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

index 8cad616..9e72807 100644 (file)
@@ -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() );