r39596 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39595‎ | r39596 | r39597 >
Date:17:52, 18 August 2008
Author:aaron
Status:old
Tags:
Comment:
Cleanup display of old entries (bug 13889)
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser.php
@@ -41,8 +41,19 @@
4242 $wgLogTypes[] = 'renameuser';
4343 $wgLogNames['renameuser'] = 'renameuserlogpage';
4444 $wgLogHeaders['renameuser'] = 'renameuserlogpagetext';
45 -$wgLogActions['renameuser/renameuser'] = 'renameuserlogentry';
 45+#$wgLogActions['renameuser/renameuser'] = 'renameuserlogentry';
 46+$wgLogActionsHandlers['renameuser/renameuser'] = 'wfRenameUserLogActionText'; // deal with old breakage
4647
 48+function wfRenameUserLogActionText( $type, $action, $title = NULL, $skin = NULL, $params = array(), $filterWikilinks=false ) {
 49+ if( !$title || $title->getNamespace() == -1 ) {
 50+ $rv = ''; // handled in comment, the old way
 51+ } else {
 52+ array_unshift( $params, $title );
 53+ $rv = wfMsgReal( 'renameuserlogentry', $params, true, !$skin );
 54+ }
 55+ return $rv;
 56+}
 57+
4758 $wgAutoloadClasses['SpecialRenameuser'] = dirname( __FILE__ ) . '/SpecialRenameuser_body.php';
4859 $wgAutoloadClasses['RenameUserJob'] = dirname(__FILE__) . '/RenameUserJob.php';
4960 $wgSpecialPages['Renameuser'] = 'SpecialRenameuser';

Status & tagging log