Index: branches/happy-melon/phase3/includes/specials/SpecialCreateAccount.php |
— | — | @@ -160,7 +160,7 @@ |
161 | 161 | * Create a new user account from the provided data |
162 | 162 | */ |
163 | 163 | protected function addNewAccount( $byEmail=false ) { |
164 | | - global $wgUser, $wgEmailAuthentication; |
| 164 | + global $wgUser, $wgEmailAuthentication, $wgLang; |
165 | 165 | |
166 | 166 | # Do a quick check that the user actually managed to type |
167 | 167 | # the password in the same both times |
— | — | @@ -193,11 +193,11 @@ |
194 | 194 | |
195 | 195 | case Login::CREATE_BADPASS: |
196 | 196 | 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 ) ) ); |
198 | 198 | |
199 | 199 | case Login::THROTTLED: |
200 | 200 | 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 ) ) ); |
202 | 202 | |
203 | 203 | default: |
204 | 204 | throw new MWException( "Unhandled status code $status in " . __METHOD__ ); |