@@ 191-200 (lines=10) @@ | ||
188 | $count = 0; |
|
189 | $result = $this->getResult(); |
|
190 | foreach ( $res as $row ) { |
|
191 | if ( ++$count > $limit ) { |
|
192 | // We've reached the one extra which shows that there are |
|
193 | // additional pages to be had. Stop here... |
|
194 | if ( $params['unique'] ) { |
|
195 | $this->setContinueEnumParameter( 'continue', $row->pl_title ); |
|
196 | } else { |
|
197 | $this->setContinueEnumParameter( 'continue', $row->pl_title . '|' . $row->pl_from ); |
|
198 | } |
|
199 | break; |
|
200 | } |
|
201 | ||
202 | if ( is_null( $resultPageSet ) ) { |
|
203 | $vals = [ |
|
@@ 219-226 (lines=8) @@ | ||
216 | } |
|
217 | } |
|
218 | $fit = $result->addValue( [ 'query', $this->getModuleName() ], null, $vals ); |
|
219 | if ( !$fit ) { |
|
220 | if ( $params['unique'] ) { |
|
221 | $this->setContinueEnumParameter( 'continue', $row->pl_title ); |
|
222 | } else { |
|
223 | $this->setContinueEnumParameter( 'continue', $row->pl_title . '|' . $row->pl_from ); |
|
224 | } |
|
225 | break; |
|
226 | } |
|
227 | } elseif ( $params['unique'] ) { |
|
228 | $titles[] = Title::makeTitle( $namespace, $row->pl_title ); |
|
229 | } else { |