r36634 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36633‎ | r36634 | r36635 >
Date:12:17, 25 June 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Was showing all messages as problematic
Modified paths:
  • /trunk/extensions/Translate/TranslateTasks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateTasks.php
@@ -208,11 +208,15 @@
209209 if ( isset($problematic[$code]) ) {
210210 foreach ( $this->collection->keys() as $key ) {
211211 $namespace = $this->group->namespaces[0];
212 - $key = strtolower( "$namespace:$key" );
213 - if ( !in_array( $key, $problematic[$code] ) ) {
 212+ $ikey = strtolower( "$namespace:$key" );
 213+ if ( !in_array( $ikey, $problematic[$code] ) ) {
214214 unset( $this->collection[$key] );
215215 }
216216 }
 217+ } else {
 218+ foreach ($this->collection->keys() as $key )
 219+ unset( $this->collection[$key] );
 220+ return;
217221 }
218222 }
219223

Status & tagging log