X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecialpage%2FPageQueryPage.php;h=3bb3f8515f1a9ffdf6e1d88f802626567c67239b;hb=9964ca1a390c446397dcd466916ffed356cdc3c9;hp=97f004f2437abf365e8cf9f7852f27a73bed57ae;hpb=e5facc46bc170c302438f60849041b0d6be75e82;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specialpage/PageQueryPage.php b/includes/specialpage/PageQueryPage.php index 97f004f243..3bb3f8515f 100644 --- a/includes/specialpage/PageQueryPage.php +++ b/includes/specialpage/PageQueryPage.php @@ -36,17 +36,7 @@ abstract class PageQueryPage extends QueryPage { * @param ResultWrapper $res */ public function preprocessResults( $db, $res ) { - if ( !$res->numRows() ) { - return; - } - - $batch = new LinkBatch(); - foreach ( $res as $row ) { - $batch->add( $row->namespace, $row->title ); - } - $batch->execute(); - - $res->seek( 0 ); + $this->executeLBFromResultWrapper( $res ); } /**