From 960130837c71dc7896a146f784fe95c97f4fbd77 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Thu, 10 Feb 2011 15:20:47 +0000 Subject: [PATCH] (bug 25832) query=allimages now outputs ns/title as well --- RELEASE-NOTES | 1 + includes/api/ApiQueryAllimages.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 689ceeca62..6716250afd 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -167,6 +167,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 26548) Add iiurlparam param to query=imageinfo and query=stashimageinfo * (bug 27205) aiprop=metadata and aiprop=parsedcomment need help text * Add a amtitle param to meta=allmessages +* (bug 25832) query=allimages now outputs ns/title as well === Languages updated in 1.18 === diff --git a/includes/api/ApiQueryAllimages.php b/includes/api/ApiQueryAllimages.php index 52cea739e5..1ae3417131 100644 --- a/includes/api/ApiQueryAllimages.php +++ b/includes/api/ApiQueryAllimages.php @@ -136,6 +136,8 @@ class ApiQueryAllimages extends ApiQueryGeneratorBase { $file = $repo->newFileFromRow( $row ); $info = array_merge( array( 'name' => $row->img_name ), ApiQueryImageInfo::getInfo( $file, $prop, $result ) ); + self::addTitleInfo( $info, $file->getTitle() ); + $fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $info ); if ( !$fit ) { $this->setContinueEnumParameter( 'from', $this->keyToTitle( $row->img_name ) ); -- 2.20.1