r44985 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44984‎ | r44985 | r44986 >
Date:22:43, 23 December 2008
Author:aaron
Status:deferred
Tags:
Comment:
Fix missing tabs on talk page
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticle.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php
@@ -775,7 +775,7 @@
776776 global $wgRequest, $wgUser, $wgFlaggedRevTabs;
777777 $title = $this->parent->getTitle()->getSubjectPage();
778778 # Non-content pages cannot be validated
779 - if( !$this->isReviewable(true) || !$title->exists() )
 779+ if( !FlaggedRevs::isPageReviewable($title) || !$title->exists() )
780780 return true;
781781 # We can change the behavoir of stable version for this page to be different
782782 # than the site default.
@@ -791,7 +791,8 @@
792792 }
793793 }
794794 # Check config
795 - if( !$this->isReviewable() )
 795+ $fa = FlaggedArticle::getTitleInstance( $title );
 796+ if( !$fa->isReviewable() )
796797 return true;
797798 # If we are viewing a page normally, and it was overridden,
798799 # change the edit tab to a "current revision" tab

Status & tagging log