* Removing $sk, wasn't used at all

* Putting $4 in msg:userstatstext will now give the percentage of
  admnistrators out of normal users.
This commit is contained in:
Ævar Arnfjörð Bjarmason 2005-05-25 01:29:41 +00:00
parent d395687427
commit 97734263bb

View file

@ -49,12 +49,13 @@ function wfSpecialStatistics() {
$row = $dbr->fetchObject( $res );
$admins = $row->total;
$sk = $wgUser->getSkin();
$ap = '[[' . wfMsg( 'administrators' ) . ']]';
$text .= wfMsg( 'userstatstext',
$wgLang->formatNum( $total ),
$wgLang->formatNum( $admins ), $ap );
$wgLang->formatNum( $admins ),
'[[' . wfMsg( 'administrators' ) . ']]',
// should logically be after #admins, danm backwards compatability!
$wgLang->formatNum( round( $admins / $total * 100, 2 ) )
);
$wgOut->addWikiText( $text );
}
?>