Index: trunk/extensions/Renameuser/SpecialRenameuser.php |
— | — | @@ -14,7 +14,6 @@ |
15 | 15 | $wgAvailableRights[] = 'renameuser'; |
16 | 16 | $wgGroupPermissions['bureaucrat']['renameuser'] = true; |
17 | 17 | |
18 | | -$wgExtensionFunctions[] = 'wfSpecialRenameuser'; |
19 | 18 | $wgExtensionCredits['specialpage'][] = array( |
20 | 19 | 'name' => 'Renameuser', |
21 | 20 | 'author' => 'Ævar Arnfjörð Bjarmason', |
— | — | @@ -44,7 +43,3 @@ |
45 | 44 | $wgAutoloadClasses['RenameUserJob'] = dirname(__FILE__) . '/RenameUserJob.php'; |
46 | 45 | $wgSpecialPages['Renameuser'] = 'SpecialRenameuser'; |
47 | 46 | $wgJobClasses['renameUser'] = 'RenameUserJob'; |
48 | | - |
49 | | -function wfSpecialRenameuser() { |
50 | | - wfLoadExtensionMessages( 'Renameuser' ); |
51 | | -} |
Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php |
— | — | @@ -22,6 +22,8 @@ |
23 | 23 | global $wgOut, $wgUser, $wgTitle, $wgRequest, $wgContLang, $wgLang; |
24 | 24 | global $wgVersion, $wgMaxNameChars, $wgCapitalLinks; |
25 | 25 | |
| 26 | + wfLoadExtensionMessages( 'Renameuser' ); |
| 27 | + |
26 | 28 | $this->setHeaders(); |
27 | 29 | |
28 | 30 | if ( !$wgUser->isAllowed( 'renameuser' ) ) { |