r79446 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79445‎ | r79446 | r79447 >
Date:22:15, 1 January 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Less general check to find the culprit that causes warnings
Modified paths:
  • /trunk/extensions/Translate/SpecialLanguageStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/SpecialLanguageStats.php
@@ -227,8 +227,9 @@
228228 list( $fuzzy, $translated, $total ) = $this->loadPercentages( $cache, $g, $code );
229229 }
230230
231 - if ( $total === 0 ) {
232 - wfWarn( __METHOD__ . ": Group $groupName has zero message ($code)" );
 231+ if ( $total == 0 ) {
 232+ $zero = serialize( $total );
 233+ error_log( __METHOD__ . ": Group $groupName has zero message ($code): $zero" );
233234 continue;
234235 }
235236

Status & tagging log