r32829 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32828‎ | r32829 | r32830 >
Date:00:25, 6 April 2008
Author:aaron
Status:old
Tags:
Comment:
Cut down on extra tab use
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticle.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php
@@ -583,11 +583,13 @@
584584 # than the site default.
585585 if( !$sktmp->mTitle->isTalkPage() && $wgUser->isAllowed('stablesettings') ) {
586586 $stabTitle = SpecialPage::getTitleFor( 'Stabilization' );
587 - $content_actions['default'] = array(
588 - 'class' => false,
589 - 'text' => wfmsg('stabilization-tab'),
590 - 'href' => $stabTitle->getLocalUrl('page='.$title->getPrefixedUrl())
591 - );
 587+ if( !isset($content_actions['protect']) && !isset($content_actions['unprotect']) ) {
 588+ $content_actions['default'] = array(
 589+ 'class' => false,
 590+ 'text' => wfmsg('stabilization-tab'),
 591+ 'href' => $stabTitle->getLocalUrl('page='.$title->getPrefixedUrl())
 592+ );
 593+ }
592594 }
593595 // Add auxillary tabs...
594596 if( !$wgFlaggedRevTabs )

Status & tagging log