From: David McCabe Date: Wed, 17 Oct 2007 03:53:58 +0000 (+0000) Subject: SkinTemplateTabAction hook -- now non-broken. X-Git-Tag: 1.31.0-rc.0~51125 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=ec60ccd5976803423fe7d56617b4cb0e98268b2f;p=lhc%2Fweb%2Fwiklou.git SkinTemplateTabAction hook -- now non-broken. --- 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 ),