Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -584,6 +584,9 @@ |
585 | 585 | $section = $wgRequest->getText( 'section' ); |
586 | 586 | $content_actions = array(); |
587 | 587 | |
| 588 | + $prevent_active_tabs = false ; |
| 589 | + wfRunHooks( 'SkinTemplatePreventOtherActiveTabs', array( &$this , &$prevent_active_tabs ) ) ; |
| 590 | + |
588 | 591 | if( $this->iscontent ) { |
589 | 592 | $subjpage = $this->mTitle->getSubjectPage(); |
590 | 593 | $talkpage = $this->mTitle->getTalkPage(); |
— | — | @@ -592,13 +595,13 @@ |
593 | 596 | $content_actions[$nskey] = $this->tabAction( |
594 | 597 | $subjpage, |
595 | 598 | $nskey, |
596 | | - !$this->mTitle->isTalkPage(), |
| 599 | + !$this->mTitle->isTalkPage() && !$prevent_active_tabs, |
597 | 600 | '', true); |
598 | 601 | |
599 | 602 | $content_actions['talk'] = $this->tabAction( |
600 | 603 | $talkpage, |
601 | 604 | 'talk', |
602 | | - $this->mTitle->isTalkPage(), |
| 605 | + $this->mTitle->isTalkPage() && !$prevent_active_tabs, |
603 | 606 | '', |
604 | 607 | true); |
605 | 608 | |