r89487 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89486‎ | r89487 | r89488 >
Date:08:50, 5 June 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
Attempt at fixing overcounting
Modified paths:
  • /trunk/extensions/Translate/specials/SpecialLanguageStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/specials/SpecialLanguageStats.php
@@ -303,12 +303,10 @@
304304 }
305305 } else {
306306 list( $fuzzy, $translated, $total ) = $this->loadPercentages( $cache, $g, $code );
 307+ $this->totals[2] += $total;
 308+ $this->totals[1] += $translated;
 309+ $this->totals[0] += $fuzzy;
307310 }
308 -
309 - $this->totals[2] += $total;
310 - $this->totals[1] += $translated;
311 - $this->totals[0] += $fuzzy;
312 -
313311 if ( $total == 0 ) {
314312 $zero = serialize( $total );
315313 error_log( __METHOD__ . ": Group $groupName has zero message ($code): $zero" );

Status & tagging log