r45451 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45450‎ | r45451 | r45452 >
Date:18:15, 6 January 2009
Author:demon
Status:reverted (Comments)
Tags:
Comment:
Use wfMsgExt() with parsemag, so {{PLURAL}} will work.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUserlogin.php
@@ -670,7 +670,8 @@
671671 $u->setNewpassword( $np, $throttle );
672672 $u->saveSettings();
673673
674 - $m = wfMsg( $emailText, $ip, $u->getName(), $np, $wgServer . $wgScript, round( $wgNewPasswordExpiry / 86400 ) );
 674+ $m = wfMsgExt( $emailText, array( 'parsemag' ), $ip, $u->getName(), $np,
 675+ $wgServer . $wgScript, round( $wgNewPasswordExpiry / 86400 ) );
675676 $result = $u->sendMail( wfMsg( $emailTitle ), $m );
676677
677678 return $result;

Follow-up revisions

RevisionCommit summaryAuthorDate
r45485Revert r45450, r45451 "(bug 2242) Introduce expiry time for temporary passwor...brion03:54, 7 January 2009

Comments

#Comment by Brion VIBBER (talk | contribs)   03:54, 7 January 2009

Notice: Undefined variable: wgNewPasswordExpiry in /Library/WebServer/Documents/trunk/includes/User.php on line 2710

Reverted in r45485

Status & tagging log