http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56275
Revision: 56275
Author: happy-melon
Date: 2009-09-13 17:46:49 +0000 (Sun, 13 Sep 2009)
Log Message:
-----------
Follow-up to r56256: use $wgLang->formatNum() as appropriate
Modified Paths:
--------------
branches/happy-melon/phase3/includes/specials/SpecialCreateAccount.php
Modified: branches/happy-melon/phase3/includes/specials/SpecialCreateAccount.php
===================================================================
--- branches/happy-melon/phase3/includes/specials/SpecialCreateAccount.php
2009-09-13 17:43:14 UTC (rev 56274)
+++ branches/happy-melon/phase3/includes/specials/SpecialCreateAccount.php
2009-09-13 17:46:49 UTC (rev 56275)
@@ -160,7 +160,7 @@
* Create a new user account from the provided data
*/
protected function addNewAccount( $byEmail=false ) {
- global $wgUser, $wgEmailAuthentication;
+ global $wgUser, $wgEmailAuthentication, $wgLang;
# Do a quick check that the user actually managed to type
# the password in the same both times
@@ -193,11 +193,11 @@
case Login::CREATE_BADPASS:
global $wgMinimalPasswordLength;
- return $this->showMainForm( wfMsgExt(
$this->mLogin->mCreateResult, array( 'parsemag' ), $wgMinimalPasswordLength ) );
+ return $this->showMainForm( wfMsgExt(
$this->mLogin->mCreateResult, array( 'parsemag' ), $wgLang->formatNum(
$wgMinimalPasswordLength ) ) );
case Login::THROTTLED:
global $wgAccountCreationThrottle;
- return $this->showMainForm( wfMsgExt(
'acct_creation_throttle_hit', array( 'parseinline' ),
$wgAccountCreationThrottle ) );
+ return $this->showMainForm( wfMsgExt(
'acct_creation_throttle_hit', array( 'parseinline' ), $wgLang->formatNum(
$wgAccountCreationThrottle ) ) );
default:
throw new MWException( "Unhandled status code
$status in " . __METHOD__ );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs