Index: trunk/extensions/Renameuser/SpecialRenameuser.php |
— | — | @@ -41,8 +41,19 @@ |
42 | 42 | $wgLogTypes[] = 'renameuser'; |
43 | 43 | $wgLogNames['renameuser'] = 'renameuserlogpage'; |
44 | 44 | $wgLogHeaders['renameuser'] = 'renameuserlogpagetext'; |
45 | | -$wgLogActions['renameuser/renameuser'] = 'renameuserlogentry'; |
| 45 | +#$wgLogActions['renameuser/renameuser'] = 'renameuserlogentry'; |
| 46 | +$wgLogActionsHandlers['renameuser/renameuser'] = 'wfRenameUserLogActionText'; // deal with old breakage |
46 | 47 | |
| 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 | + |
47 | 58 | $wgAutoloadClasses['SpecialRenameuser'] = dirname( __FILE__ ) . '/SpecialRenameuser_body.php'; |
48 | 59 | $wgAutoloadClasses['RenameUserJob'] = dirname(__FILE__) . '/RenameUserJob.php'; |
49 | 60 | $wgSpecialPages['Renameuser'] = 'SpecialRenameuser'; |