Index: trunk/extensions/Translate/utils/MessageGroupStats.php |
— | — | @@ -230,7 +230,7 @@ |
231 | 231 | $stats = self::extractResults( $res, $stats ); |
232 | 232 | |
233 | 233 | $aggregates = array( 0, 0, 0 ); |
234 | | - foreach ( $group->getGroups() as $sid => $sgroup ) { |
| 234 | + foreach ( $group->getGroups() as $sid => $subgroup ) { |
235 | 235 | # Discouraged groups may belong to a another group, usually if there |
236 | 236 | # is a aggregate group for all translatable pages. In that case |
237 | 237 | # calculate and store the statistics, but don't count them as part of |
— | — | @@ -238,9 +238,9 @@ |
239 | 239 | # add up. The statistics for discouraged groups can still be viewed |
240 | 240 | # through Special:MessageGroupStats. |
241 | 241 | if ( !isset( $stats[$sid][$code] ) ) { |
242 | | - $stats[$sid][$code] = self::forItemInternal( $stats, $sgroup, $code ); |
| 242 | + $stats[$sid][$code] = self::forItemInternal( $stats, $subgroup, $code ); |
243 | 243 | } |
244 | | - if ( MessageGroups::getPriority( $sgroup ) !== 'discouraged' ) { |
| 244 | + if ( MessageGroups::getPriority( $subgroup ) !== 'discouraged' ) { |
245 | 245 | $aggregates = self::multiAdd( $aggregates, $stats[$sid][$code] ); |
246 | 246 | } |
247 | 247 | } |