Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -340,6 +340,19 @@ |
341 | 341 | if( isset( $content_actions['viewsource'] ) ) |
342 | 342 | $content_actions['viewsource']['text'] = wfMsg('revreview-source'); |
343 | 343 | } |
| 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 | + |
344 | 357 | if( !$wgFlaggedRevTabs ) { |
345 | 358 | return true; |
346 | 359 | } |
Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php |
— | — | @@ -128,7 +128,8 @@ |
129 | 129 | |
130 | 130 | 'revreview-visibility' => 'This page has a [[Help:Article validation|stable version]], which can be |
131 | 131 | [{{fullurl:Special:Stabilization|page={{FULLPAGENAMEE}}}} configured].', |
132 | | - |
| 132 | + |
| 133 | + 'stabilization-tab' => 'qa', |
133 | 134 | 'stabilization' => 'Page stabilization', |
134 | 135 | 'stabilization-text' => 'Change the settings below to adjust how the stable version of [[:$1|$1]] is selected and displayed.', |
135 | 136 | 'stabilization-perm' => 'Your account does not have permission to change the stable version configuration. |