Index: trunk/extensions/Translate/SpecialLanguageStats.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | $this->setHeaders(); |
33 | 33 | $this->outputHeader(); |
34 | 34 | |
35 | | - if ( MW_SUPPORTS_RESOURCE_MODULES ) { |
| 35 | + if ( class_exists( 'ResourceLoader' ) ) { |
36 | 36 | $wgOut->addModules( 'ext.translate.langstats' ); |
37 | 37 | } |
38 | 38 | $wgOut->addExtensionStyle( TranslateUtils::assetPath( 'Translate.css' ) ); |
— | — | @@ -224,6 +224,7 @@ |
225 | 225 | } |
226 | 226 | |
227 | 227 | protected function makeGroupGroup( $item, $cache, $parent = '' ) { |
| 228 | + $out = ''; |
228 | 229 | if ( !is_array( $item ) ) { |
229 | 230 | return $this->makeGroupRow( $item, $cache, $parent === '' ? false : $parent ); |
230 | 231 | } |
— | — | @@ -251,7 +252,7 @@ |
252 | 253 | $blacklisted = $this->isBlacklisted( $groupId, $code ); |
253 | 254 | |
254 | 255 | if ( $blacklisted !== null ) { |
255 | | - return ''; |
| 256 | + continue; |
256 | 257 | } |
257 | 258 | |
258 | 259 | $fuzzy = $translated = $total = 0; |
— | — | @@ -270,12 +271,12 @@ |
271 | 272 | if ( $total == 0 ) { |
272 | 273 | $zero = serialize( $total ); |
273 | 274 | error_log( __METHOD__ . ": Group $groupName has zero message ($code): $zero" ); |
274 | | - return ''; |
| 275 | + continue; |
275 | 276 | } |
276 | 277 | |
277 | 278 | // Skip if $suppressComplete and complete |
278 | 279 | if ( $suppressComplete && !$fuzzy && $translated === $total ) { |
279 | | - return ''; |
| 280 | + continue; |
280 | 281 | } |
281 | 282 | |
282 | 283 | if ( $translated === $total ) { |