Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -775,7 +775,7 @@ |
776 | 776 | global $wgRequest, $wgUser, $wgFlaggedRevTabs; |
777 | 777 | $title = $this->parent->getTitle()->getSubjectPage(); |
778 | 778 | # Non-content pages cannot be validated |
779 | | - if( !$this->isReviewable(true) || !$title->exists() ) |
| 779 | + if( !FlaggedRevs::isPageReviewable($title) || !$title->exists() ) |
780 | 780 | return true; |
781 | 781 | # We can change the behavoir of stable version for this page to be different |
782 | 782 | # than the site default. |
— | — | @@ -791,7 +791,8 @@ |
792 | 792 | } |
793 | 793 | } |
794 | 794 | # Check config |
795 | | - if( !$this->isReviewable() ) |
| 795 | + $fa = FlaggedArticle::getTitleInstance( $title ); |
| 796 | + if( !$fa->isReviewable() ) |
796 | 797 | return true; |
797 | 798 | # If we are viewing a page normally, and it was overridden, |
798 | 799 | # change the edit tab to a "current revision" tab |