r56019 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56018‎ | r56019 | r56020 >
Date:08:16, 8 September 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Rename message with key 'nosuchuser' to 'al-nosuchuser' to avoid conflict with core.
Modified paths:
  • /trunk/extensions/AjaxLogin/AjaxLogin.i18n.php (modified) (history)
  • /trunk/extensions/AjaxLogin/ApiAjaxLogin.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AjaxLogin/AjaxLogin.i18n.php
@@ -18,7 +18,7 @@
1919 'ajaxLogin2' => 'Are you sure?
2020 You may lose your changes to this page if you leave this page now.',
2121 'ajaxlogin-create' => 'Create an account',
22 - 'nosuchuser' => 'There is no user by the name "$1".
 22+ 'al-nosuchuser' => 'There is no user by the name "$1".
2323 User names are case sensitive.
2424 Check your spelling.',
2525 );
Index: trunk/extensions/AjaxLogin/ApiAjaxLogin.php
@@ -64,7 +64,7 @@
6565 case LoginForm::NOT_EXISTS:
6666 $result['result'] = 'NotExists';
6767 wfLoadExtensionMessages( 'AjaxLogin' );
68 - $result['text'] = wfMsg( 'nosuchuser', htmlspecialchars( $Name ) );
 68+ $result['text'] = wfMsg( 'al-nosuchuser', htmlspecialchars( $Name ) );
6969 break;
7070 case LoginForm::WRONG_PASS:
7171 $result['result'] = 'WrongPass';
@@ -108,7 +108,7 @@
109109 } else if ( 0 == $u->getID() ) {
110110 $result['result'] = 'nosuchuser';
111111 wfLoadExtensionMessages( 'AjaxLogin' );
112 - $result['text'] = wfMsg( 'nosuchuser', $u->getName() );
 112+ $result['text'] = wfMsg( 'al-nosuchuser', $u->getName() );
113113 } else if ( $u->isPasswordReminderThrottled() ) {
114114 global $wgPasswordReminderResendTime;
115115 $result['result'] = 'throttled-mailpassword';

Status & tagging log