X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialShortpages.php;h=a78b082432d79c781a937fc8f83d9c8fb9978f8c;hp=a76b511d0d879eed95f3d9b33095348183bf6a07;hb=9964ca1a390c446397dcd466916ffed356cdc3c9;hpb=39bdb0cb4905eaebd24ebb0ed22728fa4b94e0ee diff --git a/includes/specials/SpecialShortpages.php b/includes/specials/SpecialShortpages.php index a76b511d0d..a78b082432 100644 --- a/includes/specials/SpecialShortpages.php +++ b/includes/specials/SpecialShortpages.php @@ -71,19 +71,7 @@ class ShortPagesPage extends QueryPage { * @param ResultWrapper $res */ function preprocessResults( $db, $res ) { - # There's no point doing a batch check if we aren't caching results; - # the page must exist for it to have been pulled out of the table - if ( !$this->isCached() || !$res->numRows() ) { - return; - } - - $batch = new LinkBatch(); - foreach ( $res as $row ) { - $batch->add( $row->namespace, $row->title ); - } - $batch->execute(); - - $res->seek( 0 ); + $this->executeLBFromResultWrapper( $res ); } function sortDescending() {