Index: branches/robchurch/logs/includes/LogFormatter.php |
— | — | @@ -54,11 +54,9 @@ |
55 | 55 | $parts[] = $skin->userLink( $item->getUser()->getId(), $item->getUser()->getName() ) |
56 | 56 | . $skin->userToolLinks( $item->getUser()->getId(), $item->getUser()->getName() ); |
57 | 57 | # Action |
58 | | - $parts[] = wfMsgExt( |
59 | | - $wgLogActions[ $item->getActionKey() ], |
60 | | - array( 'parseinline', 'replaceafter' ), |
61 | | - $skin->makeLinkObj( $item->getTarget() ) |
62 | | - ); |
| 58 | + $params = $item->getParameters(); |
| 59 | + array_unshift( $params, $skin->makeLinkObj( $item->getTarget() ) ); |
| 60 | + $parts[] = wfMsgReal( $wgLogActions[ $item->getActionKey() ], $params ); |
63 | 61 | # Custom appended bits |
64 | 62 | if( ( $appender = self::getAppender( $item ) ) !== false ) |
65 | 63 | $parts[] .= call_user_func( $appender, $item ); |
— | — | @@ -89,9 +87,9 @@ |
90 | 88 | * @return mixed |
91 | 89 | */ |
92 | 90 | private static function getAppender( $item ) { |
93 | | - global $wgLogAppenders; |
94 | | - return isset( $wgLogAppenders[ $item->getType() ] ) |
95 | | - ? $wgLogAppenders[ $item->getType() ] |
| 91 | + global $wgLogFormatAppenders; |
| 92 | + return isset( $wgLogFormatAppenders[ $item->getType() ] ) |
| 93 | + ? $wgLogFormatAppenders[ $item->getType() ] |
96 | 94 | : false; |
97 | 95 | } |
98 | 96 | |