Index: branches/wmf-deployment/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -959,6 +959,7 @@ |
960 | 960 | global $wgRequest, $wgUser, $wgFlaggedRevTabs; |
961 | 961 | |
962 | 962 | $title = $this->parent->getTitle()->getSubjectPage(); |
| 963 | + $article = new Article( $title ); |
963 | 964 | $action = $wgRequest->getVal( 'action', 'view' ); |
964 | 965 | $fa = FlaggedArticle::getTitleInstance( $title ); |
965 | 966 | if ( !$fa->isReviewable() || $this->limitedUI() ) { |
— | — | @@ -971,7 +972,7 @@ |
972 | 973 | return true; |
973 | 974 | } |
974 | 975 | wfLoadExtensionMessages( 'FlaggedRevs' ); |
975 | | - $synced = FlaggedRevs::stableVersionIsSynced( $srev, $this->parent ); |
| 976 | + $synced = FlaggedRevs::stableVersionIsSynced( $srev, $article ); |
976 | 977 | if ( !$skin->mTitle->isTalkPage() && !$synced ) { |
977 | 978 | if ( isset( $views['edit'] ) ) { |
978 | 979 | if ( $this->showStableByDefault() ) { |