r29549 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29548‎ | r29549 | r29550 >
Date:19:41, 10 January 2008
Author:aaron
Status:old
Tags:
Comment:
Only load messages when needed
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser.php (modified) (history)
  • /trunk/extensions/Renameuser/SpecialRenameuser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser.php
@@ -14,7 +14,6 @@
1515 $wgAvailableRights[] = 'renameuser';
1616 $wgGroupPermissions['bureaucrat']['renameuser'] = true;
1717
18 -$wgExtensionFunctions[] = 'wfSpecialRenameuser';
1918 $wgExtensionCredits['specialpage'][] = array(
2019 'name' => 'Renameuser',
2120 'author' => 'Ævar Arnfjörð Bjarmason',
@@ -44,7 +43,3 @@
4544 $wgAutoloadClasses['RenameUserJob'] = dirname(__FILE__) . '/RenameUserJob.php';
4645 $wgSpecialPages['Renameuser'] = 'SpecialRenameuser';
4746 $wgJobClasses['renameUser'] = 'RenameUserJob';
48 -
49 -function wfSpecialRenameuser() {
50 - wfLoadExtensionMessages( 'Renameuser' );
51 -}
Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php
@@ -22,6 +22,8 @@
2323 global $wgOut, $wgUser, $wgTitle, $wgRequest, $wgContLang, $wgLang;
2424 global $wgVersion, $wgMaxNameChars, $wgCapitalLinks;
2525
 26+ wfLoadExtensionMessages( 'Renameuser' );
 27+
2628 $this->setHeaders();
2729
2830 if ( !$wgUser->isAllowed( 'renameuser' ) ) {

Status & tagging log