r72843 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72842‎ | r72843 | r72844 >
Date:09:31, 12 September 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Fix docu
Modified paths:
  • /trunk/extensions/Translate/MessageCollection.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/MessageCollection.php
@@ -305,16 +305,12 @@
306306 */
307307 protected function filterOnCondition( array $keys, array $condKeys, $condition = true ) {
308308 if ( $condition === true ) {
309 - /**
310 - * Delete $condKeys from $keys
311 - */
 309+ // Delete $condKeys from $keys
312310 foreach ( array_keys( $condKeys ) as $key ) {
313311 unset( $keys[$key] );
314312 }
315313 } else {
316 - /**
317 - * Keep the keys which are in $condKeys
318 - */
 314+ // Keep the keys which are in $condKeys
319315 foreach ( array_keys( $keys ) as $key ) {
320316 if ( !isset( $condKeys[$key] ) ) {
321317 unset( $keys[$key] );

Status & tagging log