summaryrefslogtreecommitdiff
path: root/includes/ImageQueryPage.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2009-02-22 13:37:51 +0100
committerPierre Schmitz <pierre@archlinux.de>2009-02-22 13:37:51 +0100
commitb9b85843572bf283f48285001e276ba7e61b63f6 (patch)
tree4c6f4571552ada9ccfb4030481dcf77308f8b254 /includes/ImageQueryPage.php
parentd9a20acc4e789cca747ad360d87ee3f3e7aa58c1 (diff)
updated to MediaWiki 1.14.0
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;
}