Index: trunk/extensions/Renameuser/SpecialRenameuser.php |
— | — | @@ -24,6 +24,7 @@ |
25 | 25 | |
26 | 26 | # Internationalisation file |
27 | 27 | require_once( 'SpecialRenameuser.i18n.php' ); |
| 28 | +require_once( 'SpecialRenameuser_body.php' ); |
28 | 29 | |
29 | 30 | /** |
30 | 31 | * The maximum number of edits a user can have and still be allowed renaming, |
— | — | @@ -50,10 +51,11 @@ |
51 | 52 | if ( !function_exists( 'extAddSpecialPage' ) ) { |
52 | 53 | require( dirname(__FILE__) . '/../ExtensionFunctions.php' ); |
53 | 54 | } |
54 | | -extAddSpecialPage( dirname(__FILE__) . '/SpecialRenameuser_body.php', 'Renameuser', 'Renameuser' ); |
55 | 55 | |
56 | 56 | function wfSpecialRenameuser() { |
57 | 57 | # Add messages |
| 58 | + //extAddSpecialPage( dirname(__FILE__) . '/SpecialRenameuser_body.php', 'Renameuser', 'Renameuser' ); |
| 59 | + SpecialPage::AddPage(new Renameuser()); |
58 | 60 | global $wgMessageCache, $wgRenameuserMessages; |
59 | 61 | foreach( $wgRenameuserMessages as $key => $value ) { |
60 | 62 | $wgMessageCache->addMessages( $wgRenameuserMessages[$key], $key ); |