From b9b85843572bf283f48285001e276ba7e61b63f6 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Feb 2009 13:37:51 +0100 Subject: updated to MediaWiki 1.14.0 --- includes/ImageQueryPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/ImageQueryPage.php') 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; } -- cgit v1.2.3-54-g00ecf