=== Changes since 1.18.2 ===
* (bug 35446) Using "{{nse:}}" with an invalid namespace name no longer throws
a PHP warning.
+* (bug 35567) The whole password reminder e-mail is now sent in the same language.
== MediaWiki 1.18.2 ==
2012-03-21
? 'passwordreset-emailtext-ip'
: 'passwordreset-emailtext-user';
+ // Send in the user's language; which should hopefully be the same
+ $userLanguage = $firstUser->getOption( 'language' );
+
$passwords = array();
foreach ( $users as $user ) {
$password = $user->randomPassword();
$user->setNewpassword( $password );
$user->saveSettings();
- $passwords[] = $this->msg( 'passwordreset-emailelement', $user->getName(), $password )->plain(); // We'll escape the whole thing later
+ $passwords[] = $this->msg( 'passwordreset-emailelement', $user->getName(), $password
+ )->inLanguage( $userLanguage )->plain(); // We'll escape the whole thing later
}
$passwordBlock = implode( "\n\n", $passwords );
- // Send in the user's language; which should hopefully be the same
- $userLanguage = $firstUser->getOption( 'language' );
-
$this->email = $this->msg( $msg )->inLanguage( $userLanguage );
$this->email->params(
$username,