Index: branches/priyanka-wmf-fixes/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: branches/priyanka-wmf-fixes/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -974,23 +974,14 @@ |
975 | 975 | return true; |
976 | 976 | } |
977 | 977 | if ( !FlaggedRevs::useOnlyIfProtected() ) { |
978 | | - $links = array(); |
| 978 | + # Add links to lists of unreviewed pages and pending changes in this category |
979 | 979 | $category = $this->article->getTitle()->getText(); |
980 | | - # Add link to list of unreviewed pages in this category |
981 | | - $links[] = $wgUser->getSkin()->makeKnownLinkObj( |
982 | | - SpecialPage::getTitleFor( 'UnreviewedPages' ), |
983 | | - wfMsgHtml( 'unreviewedpages' ), |
984 | | - 'category=' . urlencode( $category ) |
985 | | - ); |
986 | | - # Add link to list of pages in this category with pending edits |
987 | | - $links[] = $wgUser->getSkin()->makeKnownLinkObj( |
988 | | - SpecialPage::getTitleFor( 'PendingChanges' ), |
989 | | - wfMsgHtml( 'pendingchanges' ), |
990 | | - 'category=' . urlencode( $category ) |
991 | | - ); |
992 | | - $quickLinks = implode( ' / ', $links ); |
993 | 980 | $wgOut->appendSubtitle( |
994 | | - "<span id='mw-fr-category-oldreviewed'>$quickLinks</span>" |
| 981 | + Html::rawElement( |
| 982 | + 'span', |
| 983 | + array( 'class' => 'plainlinks', 'id' => 'mw-fr-category-oldreviewed' ), |
| 984 | + wfMsgExt( 'flaggedrevs-categoryview', 'parseinline', urlencode( $category ) ) |
| 985 | + ) |
995 | 986 | ); |
996 | 987 | } |
997 | 988 | return true; |
Property changes on: branches/priyanka-wmf-fixes/extensions/FlaggedRevs/FlaggedArticleView.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
998 | 989 | Merged /trunk/extensions/FlaggedRevs/FlaggedArticleView.php:r77222 |
Property changes on: branches/priyanka-wmf-fixes/extensions/FlaggedRevs |
___________________________________________________________________ |
Modified: svn:mergeinfo |
999 | 990 | Merged /trunk/extensions/FlaggedRevs:r77222 |