Index: branches/robchurch/logs/maintenance/language/messages.inc |
— | — | @@ -1384,6 +1384,8 @@ |
1385 | 1385 | '1movedto2_redir', |
1386 | 1386 | 'movelogpage', |
1387 | 1387 | 'movelogpagetext', |
| 1388 | + 'movelog-moved', |
| 1389 | + 'movelog-movedredir', |
1388 | 1390 | 'movereason', |
1389 | 1391 | 'revertmove', |
1390 | 1392 | 'delete_and_move', |
Index: branches/robchurch/logs/includes/DefaultSettings.php |
— | — | @@ -2254,8 +2254,8 @@ |
2255 | 2255 | 'delete/revision' => 'logging-delete-revision', |
2256 | 2256 | 'upload/upload' => 'uploadedimage', |
2257 | 2257 | 'upload/revert' => 'uploadedimage', |
2258 | | - 'move/move' => '1movedto2', |
2259 | | - 'move/move_redir' => '1movedto2_redir', |
| 2258 | + 'move/move' => 'movelog-moved', |
| 2259 | + 'move/move_redir' => 'movelog-movedredir', |
2260 | 2260 | 'import/upload' => 'import-logentry-upload', |
2261 | 2261 | 'import/interwiki' => 'import-logentry-interwiki', |
2262 | 2262 | ); |
— | — | @@ -2267,6 +2267,7 @@ |
2268 | 2268 | */ |
2269 | 2269 | $wgLogActionCallbacks = array( |
2270 | 2270 | 'block' => array( 'BlockLogFormatter', 'makeActionText' ), |
| 2271 | + 'move' => array( 'CoreLogFormatter', 'formatMove' ), |
2271 | 2272 | 'patrol' => array( 'PatrolLog', 'makeActionText' ), |
2272 | 2273 | 'rights' => array( 'CoreLogFormatter', 'formatRights' ), |
2273 | 2274 | ); |
Index: branches/robchurch/logs/includes/CoreLogFormatter.php |
— | — | @@ -10,6 +10,23 @@ |
11 | 11 | class CoreLogFormatter { |
12 | 12 | |
13 | 13 | /** |
| 14 | + * Build the action text for a move log item |
| 15 | + * |
| 16 | + * @param LogItem $item Item to format |
| 17 | + * @return string |
| 18 | + */ |
| 19 | + public static function formatMove( $item ) { |
| 20 | + global $wgUser; |
| 21 | + $skin = $wgUser->getSkin(); |
| 22 | + $data = $item->getParameters(); |
| 23 | + |
| 24 | + $params[] = $skin->makeLinkObj( $item->getTarget(), '', 'redirect=no' ); |
| 25 | + $params[] = $skin->makeLinkObj( Title::newFromText( $data[0] ) ); |
| 26 | + |
| 27 | + return LogFormatter::getActionText( $item, $params ); |
| 28 | + } |
| 29 | + |
| 30 | + /** |
14 | 31 | * Build the action text for a user rights log item |
15 | 32 | * |
16 | 33 | * @param LogItem $item Item to format |
Index: branches/robchurch/logs/languages/messages/MessagesEn.php |
— | — | @@ -2111,6 +2111,8 @@ |
2112 | 2112 | '1movedto2_redir' => '[[$1]] moved to [[$2]] over redirect', |
2113 | 2113 | 'movelogpage' => 'Move log', |
2114 | 2114 | 'movelogpagetext' => 'Below is a list of page moved.', |
| 2115 | +'movelog-moved' => '$1 moved to $2', |
| 2116 | +'movelog-movedredir' => '$1 moved to $2 over redirect', |
2115 | 2117 | 'movereason' => 'Reason:', |
2116 | 2118 | 'revertmove' => 'revert', |
2117 | 2119 | 'delete_and_move' => 'Delete and move', |