Index: trunk/extensions/FlaggedRevs/FlaggedRevision.php |
— | — | @@ -569,7 +569,7 @@ |
570 | 570 | 'fr_page_id = fp_page_id AND fr_rev_id = fp_stable' ) |
571 | 571 | ) |
572 | 572 | ); |
573 | | - while ( $row = $res->fetchObject() ) { |
| 573 | + foreach ( $res as $row ) |
574 | 574 | $reviewedTS = '0'; |
575 | 575 | $reviewedSha1 = ''; |
576 | 576 | if ( $row->fr_img_timestamp ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/PendingChanges_body.php |
— | — | @@ -175,7 +175,7 @@ |
176 | 176 | |
177 | 177 | $feed->outHeader(); |
178 | 178 | if ( $pager->getNumRows() > 0 ) { |
179 | | - while ( $row = $pager->mResult->fetchObject() ) { |
| 179 | + foreach ( $pager->mResult as $row ) { |
180 | 180 | $feed->outItem( $this->feedItem( $row ) ); |
181 | 181 | } |
182 | 182 | } |
— | — | @@ -423,7 +423,7 @@ |
424 | 424 | wfProfileIn( __METHOD__ ); |
425 | 425 | # Do a link batch query |
426 | 426 | $lb = new LinkBatch(); |
427 | | - while ( $row = $this->mResult->fetchObject() ) { |
| 427 | + foreach ( $this->mResult as $row ) { |
428 | 428 | $lb->add( $row->page_namespace, $row->page_title ); |
429 | 429 | } |
430 | 430 | $lb->execute(); |
Index: trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php |
— | — | @@ -354,7 +354,7 @@ |
355 | 355 | wfProfileIn( __METHOD__ ); |
356 | 356 | # Do a link batch query |
357 | 357 | $lb = new LinkBatch(); |
358 | | - while ( $row = $this->mResult->fetchObject() ) { |
| 358 | + foreach ( $this->mResult as $row ) { |
359 | 359 | $lb->add( $row->page_namespace, $row->page_title ); |
360 | 360 | } |
361 | 361 | $lb->execute(); |
Index: trunk/extensions/FlaggedRevs/specialpages/ConfiguredPages_body.php |
— | — | @@ -176,7 +176,7 @@ |
177 | 177 | wfProfileIn( __METHOD__ ); |
178 | 178 | # Do a link batch query |
179 | 179 | $lb = new LinkBatch(); |
180 | | - while ( $row = $this->mResult->fetchObject() ) { |
| 180 | + foreach ( $this->mResult as $row ) { |
181 | 181 | $lb->add( $row->page_namespace, $row->page_title ); |
182 | 182 | } |
183 | 183 | $lb->execute(); |
Index: trunk/extensions/FlaggedRevs/specialpages/ProblemChanges_body.php |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | |
138 | 138 | $feed->outHeader(); |
139 | 139 | if ( $pager->getNumRows() > 0 ) { |
140 | | - while ( $row = $pager->mResult->fetchObject() ) { |
| 140 | + foreach ( $pager->mResult as $row ) { |
141 | 141 | $feed->outItem( $this->feedItem( $row ) ); |
142 | 142 | } |
143 | 143 | } |
— | — | @@ -375,7 +375,7 @@ |
376 | 376 | wfProfileIn( __METHOD__ ); |
377 | 377 | # Do a link batch query |
378 | 378 | $lb = new LinkBatch(); |
379 | | - while ( $row = $this->mResult->fetchObject() ) { |
| 379 | + foreach ( $this->mResult as $row ) { |
380 | 380 | $lb->add( $row->page_namespace, $row->page_title ); |
381 | 381 | } |
382 | 382 | $lb->execute(); |
Index: trunk/extensions/FlaggedRevs/specialpages/ReviewedPages_body.php |
— | — | @@ -173,7 +173,7 @@ |
174 | 174 | wfProfileIn( __METHOD__ ); |
175 | 175 | # Do a link batch query |
176 | 176 | $lb = new LinkBatch(); |
177 | | - while ( $row = $this->mResult->fetchObject() ) { |
| 177 | + foreach ( $this->mResult as $row ) { |
178 | 178 | $lb->add( $row->page_namespace, $row->page_title ); |
179 | 179 | } |
180 | 180 | $lb->execute(); |
Index: trunk/extensions/FlaggedRevs/specialpages/StablePages_body.php |
— | — | @@ -173,7 +173,7 @@ |
174 | 174 | wfProfileIn( __METHOD__ ); |
175 | 175 | # Do a link batch query |
176 | 176 | $lb = new LinkBatch(); |
177 | | - while ( $row = $this->mResult->fetchObject() ) { |
| 177 | + foreach ( $this->mResult as $row ) { |
178 | 178 | $lb->add( $row->page_namespace, $row->page_title ); |
179 | 179 | } |
180 | 180 | $lb->execute(); |