r37682 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37681‎ | r37682 | r37683 >
Date:08:54, 15 July 2008
Author:rotem
Status:old
Tags:
Comment:
Avoid conflicting function names.
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser.php (modified) (history)
  • /trunk/extensions/DeletedContributions/DeletedContributions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DeletedContributions/DeletedContributions.php
@@ -24,14 +24,14 @@
2525 = $wgAutoloadClasses['DeletedContributionsPage']
2626 = $dir . 'DeletedContributions_body.php';
2727
28 -$wgHooks['ContributionsToolLinks'][] = 'wfLoadContribsLink';
 28+$wgHooks['ContributionsToolLinks'][] = 'wfLoadDeletedContribsLink';
2929 $wgSpecialPages['DeletedContributions'] = 'DeletedContributionsPage';
3030 $wgSpecialPageGroups['DeletedContributions'] = 'users';
3131
3232 /**
3333 * Add a "Deleted contributions" link to Special:Contributions for sysops.
3434 */
35 -function wfLoadContribsLink( $id, $nt, &$links ) {
 35+function wfLoadDeletedContribsLink( $id, $nt, &$links ) {
3636 global $wgUser;
3737 if( $wgUser->isAllowed( 'deletedhistory' ) ) {
3838 wfLoadExtensionMessages( 'DeletedContributions' );
Index: trunk/extensions/CheckUser/CheckUser.php
@@ -34,7 +34,7 @@
3535 $wgHooks['RecentChange_save'][] = 'efUpdateCheckUserData';
3636 $wgHooks['ParserTestTables'][] = 'efCheckUserParserTestTables';
3737 $wgHooks['LoadExtensionSchemaUpdates'][] = 'efCheckUserSchemaUpdates';
38 -$wgHooks['ContributionsToolLinks'][] = 'wfLoadContribsLink';
 38+$wgHooks['ContributionsToolLinks'][] = 'efLoadCheckUserLink';
3939
4040 /**
4141 * Hook function for RecentChange_save
@@ -218,7 +218,7 @@
219219 $wgAutoloadClasses['CheckUser'] = dirname(__FILE__) . '/CheckUser_body.php';
220220
221221
222 -function wfLoadContribsLink( $id, $nt, &$links ) {
 222+function efLoadCheckUserLink( $id, $nt, &$links ) {
223223 global $wgUser;
224224 if( $wgUser->isAllowed( 'checkuser' ) ) {
225225 wfLoadExtensionMessages( 'CheckUser' );

Status & tagging log