r68133 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68132‎ | r68133 | r68134 >
Date:20:19, 16 June 2010
Author:aaron
Status:ok
Tags:
Comment:
Don't show outdatedreviewedpages link from categories if stableOnlyIfConfigured(), like the unreviewedpages link
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticleView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php
@@ -932,27 +932,26 @@
933933 if ( !$wgUser->isAllowed( 'review' ) ) {
934934 return true;
935935 }
936 - $links = array();
937 - $category = $this->article->getTitle()->getText();
938 - # Add link to list of unreviewed pages in this category
939936 if ( !FlaggedRevs::stableOnlyIfConfigured() ) {
 937+ $links = array();
 938+ $category = $this->article->getTitle()->getText();
 939+ # Add link to list of unreviewed pages in this category
940940 $links[] = $wgUser->getSkin()->makeKnownLinkObj(
941941 SpecialPage::getTitleFor( 'UnreviewedPages' ),
942942 wfMsgHtml( 'unreviewedpages' ),
943943 'category=' . urlencode( $category )
944944 );
 945+ # Add link to list of pages in this category with pending edits
 946+ $links[] = $wgUser->getSkin()->makeKnownLinkObj(
 947+ SpecialPage::getTitleFor( 'OldReviewedPages' ),
 948+ wfMsgHtml( 'oldreviewedpages' ),
 949+ 'category=' . urlencode( $category )
 950+ );
 951+ $quickLinks = implode( ' / ', $links );
 952+ $wgOut->appendSubtitle(
 953+ "<span id='mw-fr-category-oldreviewed'>$quickLinks</span>"
 954+ );
945955 }
946 - # Add link to list of pages in this category with pending edits
947 - $links[] = $wgUser->getSkin()->makeKnownLinkObj(
948 - SpecialPage::getTitleFor( 'OldReviewedPages' ),
949 - wfMsgHtml( 'oldreviewedpages' ),
950 - 'category=' . urlencode( $category )
951 - );
952 - $quickLinks = implode( ' / ', $links );
953 -
954 - $wgOut->appendSubtitle(
955 - "<span id='mw-fr-category-oldreviewed'>$quickLinks</span>"
956 - );
957956 return true;
958957 }
959958

Status & tagging log