* @ingroup SpecialPage
*/
+use Wikimedia\Rdbms\ResultWrapper;
+
/**
* Variant of QueryPage which formats the result as a simple link to the page
*
* @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 );
}
/**