From: David McCabe Date: Mon, 15 Oct 2007 21:12:28 +0000 (+0000) Subject: Added hook to SkinTemplate::tabAction. X-Git-Tag: 1.31.0-rc.0~51130 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=458016e5cab8ff597a3fd0fbd87c1527314be44e;p=lhc%2Fweb%2Fwiklou.git Added hook to SkinTemplate::tabAction. --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 2114676fb3..023385bea0 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -602,7 +602,12 @@ 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 ), 'text' => $text,