@@ 148-154 (lines=7) @@ | ||
145 | if ( is_null( $resultPageSet ) ) { |
|
146 | $count = 0; |
|
147 | foreach ( $res as $row ) { |
|
148 | if ( ++$count > $params['limit'] ) { |
|
149 | // We've reached the one extra which shows that |
|
150 | // there are additional pages to be had. Stop here... |
|
151 | $this->setContinueEnumParameter( 'continue', |
|
152 | "{$row->pl_from}|{$row->pl_namespace}|{$row->pl_title}" ); |
|
153 | break; |
|
154 | } |
|
155 | $vals = []; |
|
156 | ApiQueryBase::addTitleInfo( $vals, Title::makeTitle( $row->pl_namespace, $row->pl_title ) ); |
|
157 | $fit = $this->addPageSubItem( $row->pl_from, $vals ); |
|
@@ 168-174 (lines=7) @@ | ||
165 | $titles = []; |
|
166 | $count = 0; |
|
167 | foreach ( $res as $row ) { |
|
168 | if ( ++$count > $params['limit'] ) { |
|
169 | // We've reached the one extra which shows that |
|
170 | // there are additional pages to be had. Stop here... |
|
171 | $this->setContinueEnumParameter( 'continue', |
|
172 | "{$row->pl_from}|{$row->pl_namespace}|{$row->pl_title}" ); |
|
173 | break; |
|
174 | } |
|
175 | $titles[] = Title::makeTitle( $row->pl_namespace, $row->pl_title ); |
|
176 | } |
|
177 | $resultPageSet->populateFromTitles( $titles ); |