* Removing $sk, wasn't used at all
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 25 May 2005 01:29:41 +0000 (01:29 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 25 May 2005 01:29:41 +0000 (01:29 +0000)
* Putting $4 in msg:userstatstext will now give the percentage of
  admnistrators out of normal users.

includes/SpecialStatistics.php

index d7c88da..ba4d678 100644 (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 );
 }
 ?>