r26358 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26357‎ | r26358 | r26359 >
Date:09:00, 3 October 2007
Author:erik
Status:old
Tags:
Comment:
- Add tab to access per-page QA settings
I'm calling this "qa" for short because the tab list is overcrowded already for many people,
and making it too long tends to lead to trouble in low resolutions.
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticle.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php
@@ -340,6 +340,19 @@
341341 if( isset( $content_actions['viewsource'] ) )
342342 $content_actions['viewsource']['text'] = wfMsg('revreview-source');
343343 }
 344+
 345+ // If we're set up to only show stable versions on request, this can be overriden
 346+ // on a per-page basis using Special:Stabilization, and the tab for accessing it
 347+ // with the current page is inserted here.
 348+ if(!$wgFlaggedRevsAnonOnly) {
 349+ $stabTitle = SpecialPage::getTitleFor( 'Stabilization' );
 350+ $content_actions['qa'] = array(
 351+ 'class' => false,
 352+ 'text' => wfmsg('stabilization-tab'),
 353+ 'href' => $stabTitle->getLocalUrl('page='.$title->getPrefixedUrl())
 354+ );
 355+ }
 356+
344357 if( !$wgFlaggedRevTabs ) {
345358 return true;
346359 }
Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php
@@ -128,7 +128,8 @@
129129
130130 'revreview-visibility' => 'This page has a [[Help:Article validation|stable version]], which can be
131131 [{{fullurl:Special:Stabilization|page={{FULLPAGENAMEE}}}} configured].',
132 -
 132+
 133+ 'stabilization-tab' => 'qa',
133134 'stabilization' => 'Page stabilization',
134135 'stabilization-text' => 'Change the settings below to adjust how the stable version of [[:$1|$1]] is selected and displayed.',
135136 'stabilization-perm' => 'Your account does not have permission to change the stable version configuration.

Status & tagging log