From 97734263bba7e1198b61328020865a1708b0f3d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 25 May 2005 01:29:41 +0000 Subject: [PATCH] * Removing $sk, wasn't used at all * Putting $4 in msg:userstatstext will now give the percentage of admnistrators out of normal users. --- includes/SpecialStatistics.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 ); } ?> -- 2.20.1