X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=inline;f=includes%2Fspecials%2FSpecialMostlinkedcategories.php;h=41678cb34d60fa92ad201d29481ec78ea52be31a;hb=e758226c91935a1df2b6fd3ed1f18922d8bfb45b;hp=3ead08ad41f41aec372aa551d21eba0b1c3bab92;hpb=bdfe02223205923d923923dd420ba0dd863cd0fe;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMostlinkedcategories.php b/includes/specials/SpecialMostlinkedcategories.php index 3ead08ad41..41678cb34d 100644 --- a/includes/specials/SpecialMostlinkedcategories.php +++ b/includes/specials/SpecialMostlinkedcategories.php @@ -59,18 +59,7 @@ class MostlinkedCategoriesPage extends QueryPage { * @param ResultWrapper $res */ function preprocessResults( $db, $res ) { - if ( !$res->numRows() ) { - return; - } - - $batch = new LinkBatch; - foreach ( $res as $row ) { - $batch->add( NS_CATEGORY, $row->title ); - } - $batch->execute(); - - // Back to start for display - $res->seek( 0 ); + $this->executeLBFromResultWrapper( $res ); } /**