From: Ævar Arnfjörð Bjarmason Date: Wed, 25 May 2005 01:29:41 +0000 (+0000) Subject: * Removing $sk, wasn't used at all X-Git-Tag: 1.5.0alpha2~89 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=97734263bba7e1198b61328020865a1708b0f3d4;p=lhc%2Fweb%2Fwiklou.git * Removing $sk, wasn't used at all * Putting $4 in msg:userstatstext will now give the percentage of admnistrators out of normal users. --- diff --git a/includes/SpecialStatistics.php b/includes/SpecialStatistics.php index d7c88daced..ba4d67876e 100644 --- a/includes/SpecialStatistics.php +++ b/includes/SpecialStatistics.php @@ -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 ); } ?>