Fix special case at Special:MediaStatistics
authorMormegil <mormegil@centrum.cz>
Sat, 20 Sep 2014 23:20:56 +0000 (23:20 +0000)
committerMormegil <mormegil@centrum.cz>
Sat, 20 Sep 2014 23:20:56 +0000 (23:20 +0000)
commitc38702d972f1c178fa042a93fa12fb0235fef8f6
treea353e2b49989524ee9ca920ba1dec7449ca389e4
parentfd2bba45554c2d764ce99d309f4d65e14171f91a
Fix special case at Special:MediaStatistics

When a percentage was equal to 100 %, makePercentPretty
determined it should have zero decimal places, and the
resulting string "100" had "trailing 0's" removed, resulting
in a completely wrong "1".

We might either check if the number contains the decimal dot
prior to trimming, or spare the hassle for the special case
completely.

Change-Id: I15ac5caa275d72909adba27b6b88824a830bd574
includes/specials/SpecialMediaStatistics.php