r89726 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89725‎ | r89726 | r89727 >
Date:11:43, 8 June 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Commit live hack from userbase. Fixes "Mark this page for translation" link not shown
Modified paths:
  • /trunk/extensions/Translate/tag/PageTranslationHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
@@ -412,10 +412,11 @@
413413 }
414414
415415 public static function header( Title $title ) {
416 - if ( TranslatablePage::isSourcePage( $title ) ) {
 416+ if ( TranslatablePage::isTranslationPage( $title ) ) {
 417+ self::translationPageHeader( $title );
 418+ } else {
 419+ // Check for pages that are tagged or marked
417420 self::sourcePageHeader( $title );
418 - } elseif ( TranslatablePage::isTranslationPage( $title ) ) {
419 - self::translationPageHeader( $title );
420421 }
421422 }
422423

Status & tagging log