SkinTemplateTabAction hook -- now non-broken.
This commit is contained in:
parent
8608b1a842
commit
ec60ccd597
1 changed files with 7 additions and 0 deletions
|
|
@ -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 ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue