Index: trunk/extensions/Translate/MessageCollection.php |
— | — | @@ -305,16 +305,12 @@ |
306 | 306 | */ |
307 | 307 | protected function filterOnCondition( array $keys, array $condKeys, $condition = true ) { |
308 | 308 | if ( $condition === true ) { |
309 | | - /** |
310 | | - * Delete $condKeys from $keys |
311 | | - */ |
| 309 | + // Delete $condKeys from $keys |
312 | 310 | foreach ( array_keys( $condKeys ) as $key ) { |
313 | 311 | unset( $keys[$key] ); |
314 | 312 | } |
315 | 313 | } else { |
316 | | - /** |
317 | | - * Keep the keys which are in $condKeys |
318 | | - */ |
| 314 | + // Keep the keys which are in $condKeys |
319 | 315 | foreach ( array_keys( $keys ) as $key ) { |
320 | 316 | if ( !isset( $condKeys[$key] ) ) { |
321 | 317 | unset( $keys[$key] ); |