From ec60ccd5976803423fe7d56617b4cb0e98268b2f Mon Sep 17 00:00:00 2001 From: David McCabe Date: Wed, 17 Oct 2007 03:53:58 +0000 Subject: [PATCH] SkinTemplateTabAction hook -- now non-broken. --- includes/SkinTemplate.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 2114676fb3..35310a814f 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -602,6 +602,13 @@ class SkinTemplate extends Skin { global $wgContLang; $text = $wgContLang->getFormattedNsText( Namespace::getSubject( $title->getNamespace() ) ); } + + $result = array(); + if( !wfRunHooks('SkinTemplateTabAction', array(&$this, + $title, $message, $selected, $checkEdit, + &$classes, &$query, &$text, &$result)) ) { + return $result; + } return array( 'class' => implode( ' ', $classes ), -- 2.20.1