Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -932,27 +932,26 @@ |
933 | 933 | if ( !$wgUser->isAllowed( 'review' ) ) { |
934 | 934 | return true; |
935 | 935 | } |
936 | | - $links = array(); |
937 | | - $category = $this->article->getTitle()->getText(); |
938 | | - # Add link to list of unreviewed pages in this category |
939 | 936 | if ( !FlaggedRevs::stableOnlyIfConfigured() ) { |
| 937 | + $links = array(); |
| 938 | + $category = $this->article->getTitle()->getText(); |
| 939 | + # Add link to list of unreviewed pages in this category |
940 | 940 | $links[] = $wgUser->getSkin()->makeKnownLinkObj( |
941 | 941 | SpecialPage::getTitleFor( 'UnreviewedPages' ), |
942 | 942 | wfMsgHtml( 'unreviewedpages' ), |
943 | 943 | 'category=' . urlencode( $category ) |
944 | 944 | ); |
| 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 | + ); |
945 | 955 | } |
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 | | - ); |
957 | 956 | return true; |
958 | 957 | } |
959 | 958 | |