r78840 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78839‎ | r78840 | r78841 >
Date:21:39, 22 December 2010
Author:demon
Status:deferred
Tags:
Comment:
MFT r77222
Modified paths:
  • /branches/priyanka-wmf-fixes/extensions/FlaggedRevs (modified) (history)
  • /branches/priyanka-wmf-fixes/extensions/FlaggedRevs/FlaggedArticleView.php (modified) (history)
  • /branches/priyanka-wmf-fixes/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php (modified) (history)

Diff [purge]

Index: branches/priyanka-wmf-fixes/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php
@@ -274,6 +274,8 @@
275275
276276 'flaggedrevs-protect-legend' => 'Automatic edit review ([[{{MediaWiki:Validationpage}}|help]])',
277277 '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]',
278280
279281 'revreview-locked-title' => 'Edits to this page require review.',
280282 'revreview-unlocked-title' => 'Edits to this page do not require review.',
Index: branches/priyanka-wmf-fixes/extensions/FlaggedRevs/FlaggedArticleView.php
@@ -974,23 +974,14 @@
975975 return true;
976976 }
977977 if ( !FlaggedRevs::useOnlyIfProtected() ) {
978 - $links = array();
 978+ # Add links to lists of unreviewed pages and pending changes in this category
979979 $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 );
993980 $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+ )
995986 );
996987 }
997988 return true;
Property changes on: branches/priyanka-wmf-fixes/extensions/FlaggedRevs/FlaggedArticleView.php
___________________________________________________________________
Modified: svn:mergeinfo
998989 Merged /trunk/extensions/FlaggedRevs/FlaggedArticleView.php:r77222
Property changes on: branches/priyanka-wmf-fixes/extensions/FlaggedRevs
___________________________________________________________________
Modified: svn:mergeinfo
999990 Merged /trunk/extensions/FlaggedRevs:r77222

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77222Make subtitle of category pages more flexible. Now it is possible to customiz...raymond09:06, 24 November 2010

Status & tagging log