Index: trunk/extensions/Translate/api/ApiQueryMessageTranslations.php |
— | — | @@ -66,6 +66,9 @@ |
67 | 67 | $count = 0; |
68 | 68 | |
69 | 69 | foreach ( $pageInfo as $key => $info ) { |
| 70 | + if ( ++$count <= $params['offset'] ) { |
| 71 | + continue; |
| 72 | + } |
70 | 73 | |
71 | 74 | $tTitle = Title::makeTitle( $namespace, $key ); |
72 | 75 | $tHandle = new MessageHandle( $tTitle ); |
— | — | @@ -87,7 +90,7 @@ |
88 | 91 | |
89 | 92 | $fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $data ); |
90 | 93 | if ( !$fit ) { |
91 | | - $this->setContinueEnumParameter( 'offset', $params['offset'] + $count - 1 ); |
| 94 | + $this->setContinueEnumParameter( 'offset', $count ); |
92 | 95 | break; |
93 | 96 | } |
94 | 97 | |