diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
commit | b9b85843572bf283f48285001e276ba7e61b63f6 (patch) | |
tree | 4c6f4571552ada9ccfb4030481dcf77308f8b254 /includes/ImageQueryPage.php | |
parent | d9a20acc4e789cca747ad360d87ee3f3e7aa58c1 (diff) |
updated to MediaWiki 1.14.0
Diffstat (limited to 'includes/ImageQueryPage.php')
-rw-r--r-- | includes/ImageQueryPage.php | 6 |
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; } |