r12059 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12058‎ | r12059 | r12060 >
Date:13:06, 11 December 2005
Author:magnus_manske
Status:old
Tags:
Comment:
Another Hook. Poor Peter Pan.
Modified paths:
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SkinTemplate.php
@@ -584,6 +584,9 @@
585585 $section = $wgRequest->getText( 'section' );
586586 $content_actions = array();
587587
 588+ $prevent_active_tabs = false ;
 589+ wfRunHooks( 'SkinTemplatePreventOtherActiveTabs', array( &$this , &$prevent_active_tabs ) ) ;
 590+
588591 if( $this->iscontent ) {
589592 $subjpage = $this->mTitle->getSubjectPage();
590593 $talkpage = $this->mTitle->getTalkPage();
@@ -592,13 +595,13 @@
593596 $content_actions[$nskey] = $this->tabAction(
594597 $subjpage,
595598 $nskey,
596 - !$this->mTitle->isTalkPage(),
 599+ !$this->mTitle->isTalkPage() && !$prevent_active_tabs,
597600 '', true);
598601
599602 $content_actions['talk'] = $this->tabAction(
600603 $talkpage,
601604 'talk',
602 - $this->mTitle->isTalkPage(),
 605+ $this->mTitle->isTalkPage() && !$prevent_active_tabs,
603606 '',
604607 true);
605608

Status & tagging log