* 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:
parent
d395687427
commit
97734263bb
1 changed files with 5 additions and 4 deletions
|
|
@ -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 );
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue