r9613 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r9612‎ | r9613 | r9614 >
Date:07:15, 24 June 2005
Author:avar
Status:old
Tags:
Comment:
* Now inserting msg:bureaucrattitle and msg:bureaucrattext into the message
cache like a proper extension
* Fixed fatal XML errors
Modified paths:
  • /trunk/extensions/Makesysop/SpecialMakesysop.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Makesysop/SpecialMakesysop.php
@@ -35,6 +35,9 @@
3636 require_once( "LinksUpdate.php" );
3737
3838 global $wgUser, $wgOut, $wgRequest;
 39+ global $wgMessageCache;
 40+ $wgMessageCache->addMessage('bureaucrattitle', 'Bureaucrat access required');
 41+ $wgMessageCache->addMessage('bureaucrattext', 'The action you have requested can only be performed by sysops with "bureaucrat" status.');
3942
4043 if ( $wgUser->isAnon() or $wgUser->isBlocked() ) {
4144 $wgOut->errorpage( "movenologin", "movenologintext" );
@@ -112,8 +115,9 @@
113116 $makeburo = wfMsg( "setbureaucratflag" );
114117 $wgOut->addHTML(
115118 "<tr>
116 - <td>&nbsp;</td><td align=left>
117 - <input type=checkbox name=\"wpSetBureaucrat\" value=1>$makeburo
 119+ <td>&nbsp;</td>
 120+ <td align='left'>
 121+ <input type='checkbox' name='wpSetBureaucrat' value='1'>$makeburo</input>
118122 </td>
119123 </tr>"
120124 );

Status & tagging log