r108318 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108317‎ | r108318 | r108319 >
Date:14:09, 7 January 2012
Author:ialex
Status:ok
Tags:
Comment:
Don't generate HTML links for IRC messages
Modified paths:
  • /trunk/extensions/Translate/TranslateHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateHooks.php
@@ -319,10 +319,13 @@
320320 $linker = class_exists( 'DummyLinker' ) ? new DummyLinker : new Linker;
321321
322322 if ( $action === 'message' ) {
 323+ $link = $forUI ?
 324+ $linker->link( $title, null, array(), array( 'oldid' => $params[0] ) ) :
 325+ $title->getPrefixedText();
323326 return wfMessage( 'logentry-translationreview-message' )->params(
324327 '', // User link in the new system
325328 '#', // User name for gender in the new system
326 - Message::rawParam( $linker->link( $title, null, array(), array( 'oldid' => $params[0] ) ) )
 329+ Message::rawParam( $link )
327330 )->inLanguage( $language )->text();
328331 }
329332
@@ -338,15 +341,14 @@
339342 $oldState = $oldStateMessage->isBlank() ? $oldState : $oldStateMessage->text();
340343 $newState = $newStateMessage->isBlank() ? $newState : $newStateMessage->text();
341344
 345+ $link = $forUI ?
 346+ $linker->link( $title, $groupLabel, array(), array( 'language' => $languageCode ) ) :
 347+ $groupLabel;
 348+
342349 return wfMessage( 'logentry-groupreview-message' )->params(
343350 '', // User link in the new system
344351 '#', // User name for gender in the new system
345 - Message::rawParam( $linker->link(
346 - $title,
347 - $groupLabel,
348 - array(),
349 - array( 'language' => $languageCode ) )
350 - ),
 352+ Message::rawParam( $link ),
351353 $languageName,
352354 $oldState,
353355 $newState

Status & tagging log