Use wfMsgExt() with parsemag, so {{PLURAL}} will work.
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 6 Jan 2009 18:15:08 +0000 (18:15 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 6 Jan 2009 18:15:08 +0000 (18:15 +0000)
includes/specials/SpecialUserlogin.php

index 0f354c2..1bb54ed 100644 (file)
@@ -670,7 +670,8 @@ class LoginForm {
                $u->setNewpassword( $np, $throttle );
                $u->saveSettings();
 
-               $m = wfMsg( $emailText, $ip, $u->getName(), $np, $wgServer . $wgScript, round( $wgNewPasswordExpiry / 86400 ) );
+               $m = wfMsgExt( $emailText, array( 'parsemag' ), $ip, $u->getName(), $np,
+                               $wgServer . $wgScript, round( $wgNewPasswordExpiry / 86400 ) );
                $result = $u->sendMail( wfMsg( $emailTitle ), $m );
 
                return $result;