the displayed percentage of admins to be totally off.
* upgrade1_5.php uses insert ignore, allows to skip image info initialization
* Fix namespaces in category list.
* Add rebuildImages.php to update image metadata fields
-
+* (bug 2568) Fixed a logic error in the Special:Statistics code which caused
+ the displayed percentage of admins to be totally off.
=== Caveats ===
$wgLang->formatNum( $admins ),
'[[' . wfMsg( 'administrators' ) . ']]',
// should logically be after #admins, danm backwards compatability!
- $wgLang->formatNum( round( $admins / $total * 100, 2 ) )
+ $wgLang->formatNum( sprintf( '%.2f', $admins / $users * 100 ) )
);
$wgOut->addWikiText( $text );