Support GENDER in 'passwordreset-emailelement'.
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Sun, 5 Aug 2012 14:49:03 +0000 (16:49 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Sun, 5 Aug 2012 14:49:03 +0000 (16:49 +0200)
Change-Id: I1b14dbb8d1fb06c688064af4a6a02e03293dc5f0

includes/specials/SpecialPasswordReset.php
languages/messages/MessagesQqq.php

index 51520c8..efb5765 100644 (file)
@@ -238,7 +238,7 @@ class SpecialPasswordReset extends FormSpecialPage {
                        $user->setNewpassword( $password );
                        $user->saveSettings();
                        $passwords[] = $this->msg( 'passwordreset-emailelement', $user->getName(), $password
-                               )->inLanguage( $userLanguage )->plain(); // We'll escape the whole thing later
+                               )->inLanguage( $userLanguage )->text(); // We'll escape the whole thing later
                }
                $passwordBlock = implode( "\n\n", $passwords );
 
index c9964fc..bbc13ac 100644 (file)
@@ -863,9 +863,9 @@ Parameters:
 * $2 - message {{msg-mw|passwordreset-emailelement|notext=1}} repeated $3 times
 * $3 - the number of repetitions in $2
 * $4 - base URL of the wiki',
-'passwordreset-emailelement' => "This is a body of a reminder email to allow them into the system with a new password.
-$1 will be the user's login name.
-$2 will be the temporary password given by the system.",
+'passwordreset-emailelement' => "This is a body of a reminder email to allow them into the system with a new password. Parameters:
+* $1 will be the user's login name. This parameter can be used for GENDER.
+$2 will be the temporary password given by the system.",
 'passwordreset-emailerror-capture' => 'Error message displayed when sending an e-mail fails. Parameters:
 * $1 is the name of a user who was supposed to get the e-mail.',