r68679 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68678‎ | r68679 | r68680 >
Date:20:07, 28 June 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Language condition was reversed
Modified paths:
  • /trunk/extensions/Translate/tag/PageTranslationHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
@@ -528,10 +528,10 @@
529529 return true;
530530 }
531531
532 - public static function formatLogEntry( $type, $action, $title, $forContent, $params ) {
 532+ public static function formatLogEntry( $type, $action, $title, $forUI, $params ) {
533533 global $wgLang, $wgContLang;
534534
535 - $language = $forContent ? $wgContLang : $wgLang;
 535+ $language = $forUI === null ? $wgContLang : $wgLang;
536536 $opts = array( 'parseinline', 'language' => $language );
537537
538538 $_ = unserialize( $params[0] );

Status & tagging log