From 37b6bc4083acb00a8ba5d051c1015adae95704f4 Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Sun, 11 Dec 2005 13:06:10 +0000 Subject: [PATCH] Another Hook. Poor Peter Pan. --- includes/SkinTemplate.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 12117ce726..834d9f72b1 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -584,6 +584,9 @@ class SkinTemplate extends Skin { $section = $wgRequest->getText( 'section' ); $content_actions = array(); + $prevent_active_tabs = false ; + wfRunHooks( 'SkinTemplatePreventOtherActiveTabs', array( &$this , &$prevent_active_tabs ) ) ; + if( $this->iscontent ) { $subjpage = $this->mTitle->getSubjectPage(); $talkpage = $this->mTitle->getTalkPage(); @@ -592,13 +595,13 @@ class SkinTemplate extends Skin { $content_actions[$nskey] = $this->tabAction( $subjpage, $nskey, - !$this->mTitle->isTalkPage(), + !$this->mTitle->isTalkPage() && !$prevent_active_tabs, '', true); $content_actions['talk'] = $this->tabAction( $talkpage, 'talk', - $this->mTitle->isTalkPage(), + $this->mTitle->isTalkPage() && !$prevent_active_tabs, '', true); -- 2.20.1