Don't mess recent changes
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 27 Aug 2005 18:50:51 +0000 (18:50 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 27 Aug 2005 18:50:51 +0000 (18:50 +0000)
includes/LogPage.php
includes/SpecialLog.php

index f1888c9..02270e3 100644 (file)
@@ -155,7 +155,7 @@ class LogPage {
        /**
         * @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',
@@ -194,7 +194,7 @@ class LogPage {
                                        $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 );
index dd09871..a981310 100644 (file)
@@ -322,7 +322,7 @@ class LogViewer {
                        }
                }
 
-               $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;
        }