| Index: trunk/phase3/includes/SpecialLog.php |
| — | — | @@ -322,7 +322,7 @@ |
| 323 | 323 | } |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | | - $action = LogPage::actionText( $s->log_type, $s->log_action, $title, $this->skin, $paramArray, true ); |
| | 326 | + $action = LogPage::actionText( $s->log_type, $s->log_action, $title, $this->skin, $paramArray, true, true ); |
| 327 | 327 | $out = "<li>$time $userLink $action $comment $revert</li>\n"; |
| 328 | 328 | return $out; |
| 329 | 329 | } |
| Index: trunk/phase3/includes/LogPage.php |
| — | — | @@ -155,7 +155,7 @@ |
| 156 | 156 | /** |
| 157 | 157 | * @static |
| 158 | 158 | */ |
| 159 | | - function actionText( $type, $action, $title = NULL, $skin = NULL, $params = array(), $filterWikilinks=false ) { |
| | 159 | + function actionText( $type, $action, $title = NULL, $skin = NULL, $params = array(), $filterWikilinks=false, $translate=false ) { |
| 160 | 160 | global $wgLang; |
| 161 | 161 | static $actions = array( |
| 162 | 162 | 'block/block' => 'blocklogentry', |
| — | — | @@ -194,7 +194,7 @@ |
| 195 | 195 | $rv = wfMsg( $actions[$key], $titleLink ); |
| 196 | 196 | } else { |
| 197 | 197 | array_unshift( $params, $titleLink ); |
| 198 | | - if ( $key == 'block/block' ) { |
| | 198 | + if ( $translate && $key == 'block/block' ) { |
| 199 | 199 | $params[1] = $wgLang->translateBlockExpiry($params[1]); |
| 200 | 200 | } |
| 201 | 201 | $rv = wfMsgReal( $actions[$key], $params, true, false ); |