X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FImageQueryPage.php;h=75f7ba640b5002d74397d34c03723e1d9ad31a18;hb=8aaed96eb48f5b8b78ec8fe4287d7295a0039871;hp=eeec5cd624c29d5c633c78e763c9932d28f64522;hpb=d8cb9695c6971975692808bb7cdc991e2abda0ab;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ImageQueryPage.php b/includes/ImageQueryPage.php index eeec5cd624..75f7ba640b 100644 --- a/includes/ImageQueryPage.php +++ b/includes/ImageQueryPage.php @@ -42,7 +42,8 @@ abstract class ImageQueryPage extends QueryPage { */ protected function outputResults( $out, $skin, $dbr, $res, $num, $offset ) { if ( $num > 0 ) { - $gallery = new ImageGallery(); + $gallery = ImageGalleryBase::factory(); + $gallery->setContext( $this->getContext() ); # $res might contain the whole 1,000 rows, so we read up to # $num [should update this to use a Pager]