dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "API: Allow for format modules that cannot handle errors"
[lhc/web/wiklou.git]
/
includes
/
ImageQueryPage.php
diff --git
a/includes/ImageQueryPage.php
b/includes/ImageQueryPage.php
index
eeec5cd
..
75f7ba6
100644
(file)
--- 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 ) {
*/
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]
# $res might contain the whole 1,000 rows, so we read up to
# $num [should update this to use a Pager]