Index: trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php |
— | — | @@ -274,6 +274,8 @@ |
275 | 275 | |
276 | 276 | 'flaggedrevs-protect-legend' => 'Automatic edit review ([[{{MediaWiki:Validationpage}}|help]])', |
277 | 277 | 'flaggedrevs-protect-none' => 'Allow all users', |
| 278 | + |
| 279 | + 'flaggedrevs-categoryview' => '[{{fullurl:Special:UnreviewedPages|category=$1}} Unreviewed pages]{{int:pipe-separator}}[{{fullurl:Special:PendingChanges|category=$1}} Pending changes]', |
278 | 280 | |
279 | 281 | 'revreview-locked-title' => 'Edits to this page require review.', |
280 | 282 | 'revreview-unlocked-title' => 'Edits to this page do not require review.', |
Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -980,23 +980,14 @@ |
981 | 981 | return true; |
982 | 982 | } |
983 | 983 | if ( !FlaggedRevs::useOnlyIfProtected() ) { |
984 | | - $links = array(); |
| 984 | + # Add links to lists of unreviewed pages and pending changes in this category |
985 | 985 | $category = $this->article->getTitle()->getText(); |
986 | | - # Add link to list of unreviewed pages in this category |
987 | | - $links[] = $wgUser->getSkin()->makeKnownLinkObj( |
988 | | - SpecialPage::getTitleFor( 'UnreviewedPages' ), |
989 | | - wfMsgHtml( 'unreviewedpages' ), |
990 | | - 'category=' . urlencode( $category ) |
991 | | - ); |
992 | | - # Add link to list of pages in this category with pending edits |
993 | | - $links[] = $wgUser->getSkin()->makeKnownLinkObj( |
994 | | - SpecialPage::getTitleFor( 'PendingChanges' ), |
995 | | - wfMsgHtml( 'pendingchanges' ), |
996 | | - 'category=' . urlencode( $category ) |
997 | | - ); |
998 | | - $quickLinks = implode( ' / ', $links ); |
999 | 986 | $wgOut->appendSubtitle( |
1000 | | - "<span id='mw-fr-category-oldreviewed'>$quickLinks</span>" |
| 987 | + Html::rawElement( |
| 988 | + 'span', |
| 989 | + array( 'class' => 'plainlinks', 'id' => 'mw-fr-category-oldreviewed' ), |
| 990 | + wfMsgExt( 'flaggedrevs-categoryview', 'parseinline', urlencode( $category ) ) |
| 991 | + ) |
1001 | 992 | ); |
1002 | 993 | } |
1003 | 994 | return true; |