MediaWiki r10811 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r10810‎ | r10811 (on ViewVC)‎ | r10812 >
Date:18:50, 27 August 2005
Author:nikerabbit
Status:old
Tags:
Comment:
Don't mess recent changes
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/SpecialLog.php
@@ -322,7 +322,7 @@
323323 }
324324 }
325325
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 );
327327 $out = "<li>$time $userLink $action $comment $revert</li>\n";
328328 return $out;
329329 }
Index: trunk/phase3/includes/LogPage.php
@@ -155,7 +155,7 @@
156156 /**
157157 * @static
158158 */
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 ) {
160160 global $wgLang;
161161 static $actions = array(
162162 'block/block' => 'blocklogentry',
@@ -194,7 +194,7 @@
195195 $rv = wfMsg( $actions[$key], $titleLink );
196196 } else {
197197 array_unshift( $params, $titleLink );
198 - if ( $key == 'block/block' ) {
 198+ if ( $translate && $key == 'block/block' ) {
199199 $params[1] = $wgLang->translateBlockExpiry($params[1]);
200200 }
201201 $rv = wfMsgReal( $actions[$key], $params, true, false );

Status & tagging log

  • 01:58, 13 October 2010 ^demon (Talk | contribs) changed the status of r10811 [removed: new added: old]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox