r56697 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56696‎ | r56697 | r56698 >
Date:11:37, 21 September 2009
Author:demon
Status:ok
Tags:
Comment:
Followup r56684: Add new message 'createaccounterror' for errors on account creation page. Doesn't make much sense to say "Login error" here :)
Modified paths:
  • /trunk/phase3/includes/specials/SpecialCreateAccount.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/maintenance/language/messages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/messages.inc
@@ -425,6 +425,7 @@
426426 'badretype',
427427 'userexists',
428428 'loginerror',
 429+ 'createaccounterror',
429430 'nocookiesnew',
430431 'nocookieslogin',
431432 'noname',
Index: trunk/phase3/includes/specials/SpecialCreateAccount.php
@@ -316,7 +316,7 @@
317317 # Parse the error message if we got one
318318 if( $msg ){
319319 if( $msgtype == 'error' ){
320 - $msg = wfMsgExt( 'loginerror', 'parseinline' ) . ' ' . $msg;
 320+ $msg = wfMsgExt( 'createaccounterror', array( 'parseinline', 'replaceafter' ), $msg );
321321 }
322322 $msg = Html::rawElement(
323323 'div',
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -1058,6 +1058,7 @@
10591059 'userexists' => 'Username entered already in use.
10601060 Please choose a different name.',
10611061 'loginerror' => 'Login error',
 1062+'createaccounterror' => 'Could not create account: $1',
10621063 'nocookiesnew' => 'The user account was created, but you are not logged in.
10631064 {{SITENAME}} uses cookies to log in users.
10641065 You have cookies disabled.

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r56684Merge in Login rewrite, second time lucky.happy-melon20:28, 20 September 2009

Status & tagging log