X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FImageQueryPage.php;h=75f7ba640b5002d74397d34c03723e1d9ad31a18;hb=8f04fa304ae68431a9fc1eb16f06995ad6affa00;hp=eeec5cd624c29d5c633c78e763c9932d28f64522;hpb=aba48f4ef94fb85b571a25cb9fb49a9a62dc3f44;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]