Index: trunk/extensions/Translate/TranslateTasks.php |
— | — | @@ -208,11 +208,15 @@ |
209 | 209 | if ( isset($problematic[$code]) ) { |
210 | 210 | foreach ( $this->collection->keys() as $key ) { |
211 | 211 | $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] ) ) { |
214 | 214 | unset( $this->collection[$key] ); |
215 | 215 | } |
216 | 216 | } |
| 217 | + } else { |
| 218 | + foreach ($this->collection->keys() as $key ) |
| 219 | + unset( $this->collection[$key] ); |
| 220 | + return; |
217 | 221 | } |
218 | 222 | } |
219 | 223 | |