r89949 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89948‎ | r89949 | r89950 >
Date:08:17, 13 June 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Don't show "this page is translated" on non-existing pages
Modified paths:
  • /trunk/extensions/Translate/tag/PageTranslationHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
@@ -485,6 +485,10 @@
486486 protected static function translationPageHeader( Title $title ) {
487487 global $wgOut;
488488
 489+ if ( !$title->exists() ) {
 490+ return;
 491+ }
 492+
489493 // Check if applicable
490494 $page = TranslatablePage::isTranslationPage( $title );
491495 if ( $page === false ) {

Status & tagging log