summaryrefslogtreecommitdiff
path: root/includes/ImageQueryPage.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/ImageQueryPage.php')
-rw-r--r--includes/ImageQueryPage.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/ImageQueryPage.php b/includes/ImageQueryPage.php
index da9b6fd6..3ab0b858 100644
--- a/includes/ImageQueryPage.php
+++ b/includes/ImageQueryPage.php
@@ -34,7 +34,7 @@ class ImageQueryPage extends QueryPage {
}
}
- $out->addHtml( $gallery->toHtml() );
+ $out->addHTML( $gallery->toHtml() );
}
}
@@ -45,9 +45,9 @@ class ImageQueryPage extends QueryPage {
* @return Image
*/
private function prepareImage( $row ) {
- $namespace = isset( $row->namespace ) ? $row->namespace : NS_IMAGE;
+ $namespace = isset( $row->namespace ) ? $row->namespace : NS_FILE;
$title = Title::makeTitleSafe( $namespace, $row->title );
- return ( $title instanceof Title && $title->getNamespace() == NS_IMAGE )
+ return ( $title instanceof Title && $title->getNamespace() == NS_FILE )
? wfFindFile( $title )
: null;
}