r72964 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72963‎ | r72964 | r72965 >
Date:09:30, 14 September 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Insert export link only on normal page views
Modified paths:
  • /trunk/extensions/Translate/tag/PageTranslationHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
@@ -476,7 +476,12 @@
477477 }
478478
479479 public static function exportToolbox( $skin ) {
480 - global $wgOut;
 480+ global $wgOut, $wgRequest;
 481+
 482+ if ( $wgRequest->getVal( 'action', 'view' ) !== 'view' || $wgRequest->getVal( 'oldid' ) ) {
 483+ return true;
 484+ }
 485+
481486 $title = $wgOut->getTitle();
482487
483488 // Check if this is a source page or a translation page

Status & tagging log