$x = $dbr->fetchObject( $res );
$numberofwatchingusers = $x->n;
if ($numberofwatchingusers > 0) {
- $tpl->set('numberofwatchingusers', wfMsg('number_of_watching_users_pageview', $numberofwatchingusers));
+ $tpl->set('numberofwatchingusers',
+ wfMsgExt('number_of_watching_users_pageview', array('parseinline'),
+ $wgLang->formatNum($numberofwatchingusers))
+ );
} else {
$tpl->set('numberofwatchingusers', false);
}
}
$result = array();
- if( wfRunHooks('SkinTemplateTabAction', array(&$this, $title, $message, $selected, $checkEdit,
+ if( !wfRunHooks('SkinTemplateTabAction', array(&$this,
+ $title, $message, $selected, $checkEdit,
&$classes, &$query, &$text, &$result)) ) {
return $result;
}
+
return array(
'class' => implode( ' ', $classes ),
'text' => $text,
}
}
+
+