Index: trunk/extensions/Translate/api/ApiQueryMessageGroups.php |
— | — | @@ -35,8 +35,12 @@ |
36 | 36 | $a['class'] = get_class( $g ); |
37 | 37 | $a['exists'] = $g->exists(); |
38 | 38 | |
39 | | - // TODO: Evaluate $fit |
| 39 | + // TODO: Add a continue? |
40 | 40 | $fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $a ); |
| 41 | + if ( !$fit ) { |
| 42 | + // Even if we're not going to give a continue, no point carrying on if the result is full |
| 43 | + break; |
| 44 | + } |
41 | 45 | } |
42 | 46 | |
43 | 47 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'group' ); |