r77222 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77221‎ | r77222 | r77223 >
Date:09:06, 24 November 2010
Author:raymond
Status:ok
Tags:
Comment:
Make subtitle of category pages more flexible. Now it is possible to customize the message and add useful tool links, i.e. the "deep out of sight" of Magnus: http://toolserver.org/~magnus/deep_out_of_sight.php?language=de&category=K%C3%B6ln&depth=8&doit=Los!
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticleView.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php (modified) (history)

Diff [purge]

Index: trunk/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: trunk/extensions/FlaggedRevs/FlaggedArticleView.php
@@ -980,23 +980,14 @@
981981 return true;
982982 }
983983 if ( !FlaggedRevs::useOnlyIfProtected() ) {
984 - $links = array();
 984+ # Add links to lists of unreviewed pages and pending changes in this category
985985 $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 );
999986 $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+ )
1001992 );
1002993 }
1003994 return true;

Follow-up revisions

RevisionCommit summaryAuthorDate
r78840MFT r77222demon21:39, 22 December 2010

Status & tagging log