r22701 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22700‎ | r22701 | r22702 >
Date:13:00, 4 June 2007
Author:travis
Status:old
Tags:
Comment:
extAddSpecialPage doesnt seem to work for 1.9 - no special page found
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser.php
@@ -24,6 +24,7 @@
2525
2626 # Internationalisation file
2727 require_once( 'SpecialRenameuser.i18n.php' );
 28+require_once( 'SpecialRenameuser_body.php' );
2829
2930 /**
3031 * The maximum number of edits a user can have and still be allowed renaming,
@@ -50,10 +51,11 @@
5152 if ( !function_exists( 'extAddSpecialPage' ) ) {
5253 require( dirname(__FILE__) . '/../ExtensionFunctions.php' );
5354 }
54 -extAddSpecialPage( dirname(__FILE__) . '/SpecialRenameuser_body.php', 'Renameuser', 'Renameuser' );
5555
5656 function wfSpecialRenameuser() {
5757 # Add messages
 58+ //extAddSpecialPage( dirname(__FILE__) . '/SpecialRenameuser_body.php', 'Renameuser', 'Renameuser' );
 59+ SpecialPage::AddPage(new Renameuser());
5860 global $wgMessageCache, $wgRenameuserMessages;
5961 foreach( $wgRenameuserMessages as $key => $value ) {
6062 $wgMessageCache->addMessages( $wgRenameuserMessages[$key], $key );

Status & tagging log