* @param ResultWrapper $res
*/
function preprocessResults( $db, $res ) {
- if ( !$res->numRows() ) {
- return;
- }
-
- $batch = new LinkBatch;
- foreach ( $res as $row ) {
- $batch->add( $row->namespace, $row->title );
- }
- $batch->execute();
-
- // Back to start for display
- $res->seek( 0 );
+ $this->executeLBFromResultWrapper( $res );
}
/**
$pageLink = Linker::link(
$title,
null,
- array(),
- array(),
- array( 'broken' )
+ [],
+ [],
+ [ 'broken' ]
);
}
return $this->getLanguage()->specialList( $pageLink, $this->makeWlhLink( $title, $result ) );