r56275 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56274‎ | r56275 | r56276 >
Date:17:46, 13 September 2009
Author:happy-melon
Status:deferred
Tags:
Comment:
Follow-up to r56256: use $wgLang->formatNum() as appropriate
Modified paths:
  • /branches/happy-melon/phase3/includes/specials/SpecialCreateAccount.php (modified) (history)

Diff [purge]

Index: branches/happy-melon/phase3/includes/specials/SpecialCreateAccount.php
@@ -160,7 +160,7 @@
161161 * Create a new user account from the provided data
162162 */
163163 protected function addNewAccount( $byEmail=false ) {
164 - global $wgUser, $wgEmailAuthentication;
 164+ global $wgUser, $wgEmailAuthentication, $wgLang;
165165
166166 # Do a quick check that the user actually managed to type
167167 # the password in the same both times
@@ -193,11 +193,11 @@
194194
195195 case Login::CREATE_BADPASS:
196196 global $wgMinimalPasswordLength;
197 - return $this->showMainForm( wfMsgExt( $this->mLogin->mCreateResult, array( 'parsemag' ), $wgMinimalPasswordLength ) );
 197+ return $this->showMainForm( wfMsgExt( $this->mLogin->mCreateResult, array( 'parsemag' ), $wgLang->formatNum( $wgMinimalPasswordLength ) ) );
198198
199199 case Login::THROTTLED:
200200 global $wgAccountCreationThrottle;
201 - return $this->showMainForm( wfMsgExt( 'acct_creation_throttle_hit', array( 'parseinline' ), $wgAccountCreationThrottle ) );
 201+ return $this->showMainForm( wfMsgExt( 'acct_creation_throttle_hit', array( 'parseinline' ), $wgLang->formatNum( $wgAccountCreationThrottle ) ) );
202202
203203 default:
204204 throw new MWException( "Unhandled status code $status in " . __METHOD__ );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r56256Lots of tweaks to the Login rewrite stuffhappy-melon12:51, 13 September 2009

Status & tagging log