/**
* @static
*/
- function actionText( $type, $action, $title = NULL, $skin = NULL, $params = array(), $filterWikilinks=false ) {
+ function actionText( $type, $action, $title = NULL, $skin = NULL, $params = array(), $filterWikilinks=false, $translate=false ) {
global $wgLang;
static $actions = array(
'block/block' => 'blocklogentry',
$rv = wfMsg( $actions[$key], $titleLink );
} else {
array_unshift( $params, $titleLink );
- if ( $key == 'block/block' ) {
+ if ( $translate && $key == 'block/block' ) {
$params[1] = $wgLang->translateBlockExpiry($params[1]);
}
$rv = wfMsgReal( $actions[$key], $params, true, false );
}
}
- $action = LogPage::actionText( $s->log_type, $s->log_action, $title, $this->skin, $paramArray, true );
+ $action = LogPage::actionText( $s->log_type, $s->log_action, $title, $this->skin, $paramArray, true, true );
$out = "<li>$time $userLink $action $comment $revert</li>\n";
return $out;
}