r29563 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29562‎ | r29563 | r29564 >
Date:22:38, 10 January 2008
Author:aaron
Status:old
Tags:
Comment:
Move this call up (feels better here), still only called when used of course
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php
@@ -1,5 +1,13 @@
22 <?php
33
 4+if ( !defined( 'MEDIAWIKI' ) ) {
 5+ echo "RenameUser extension\n";
 6+ exit( 1 );
 7+}
 8+
 9+# Add messages
 10+wfLoadExtensionMessages( 'Renameuser' );
 11+
412 /**
513 * Special page allows authorised users to rename
614 * user accounts
@@ -22,8 +30,6 @@
2331 global $wgOut, $wgUser, $wgTitle, $wgRequest, $wgContLang, $wgLang;
2432 global $wgVersion, $wgMaxNameChars, $wgCapitalLinks;
2533
26 - wfLoadExtensionMessages( 'Renameuser' );
27 -
2834 $this->setHeaders();
2935
3036 if ( !$wgUser->isAllowed( 'renameuser' ) ) {

Status & tagging log