Index: trunk/extensions/Renameuser/SpecialRenameuser.i18n.php |
— | — | @@ -40,6 +40,9 @@ |
41 | 41 | 'renameuser-move-log' => 'Automatically moved page while renaming the user "[[User:$1|$1]]" to "[[User:$2|$2]]"', |
42 | 42 | |
43 | 43 | 'right-renameuser' => 'Rename users', |
| 44 | + |
| 45 | + 'renamed-notice' => 'This user has been renamed. |
| 46 | +The rename log is provided below for reference.', |
44 | 47 | ); |
45 | 48 | |
46 | 49 | /** Message documentation (Message documentation) |
Index: trunk/extensions/Renameuser/SpecialRenameuser.php |
— | — | @@ -61,3 +61,16 @@ |
62 | 62 | $wgSpecialPages['Renameuser'] = 'SpecialRenameuser'; |
63 | 63 | $wgSpecialPageGroups['Renameuser'] = 'users'; |
64 | 64 | $wgJobClasses['renameUser'] = 'RenameUserJob'; |
| 65 | + |
| 66 | +$wgHooks['ShowMissingArticle'][] = 'wfRenameUserShowLog'; |
| 67 | + |
| 68 | +function wfRenameUserShowLog( $article ) { |
| 69 | + global $wgOut; |
| 70 | + $title = $article->getTitle(); |
| 71 | + if ( $title->getNamespace() == NS_USER || $title->getNamespace() == NS_USER_TALK ) { |
| 72 | + $page = $title->getPrefixedDBkey(); |
| 73 | + LogEventsList::showLogExtract( $wgOut, 'renameuser', $page, '', 10, array(), false, 'renamed-notice' ); |
| 74 | + } |
| 75 | + return true; |
| 76 | +} |
| 77 | + |