r81888 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81887‎ | r81888 | r81889 >
Date:15:20, 10 February 2011
Author:btongminh
Status:ok
Tags:
Comment:
(bug 25832) query=allimages now outputs ns/title as well
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryAllimages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryAllimages.php
@@ -136,6 +136,8 @@
137137 $file = $repo->newFileFromRow( $row );
138138 $info = array_merge( array( 'name' => $row->img_name ),
139139 ApiQueryImageInfo::getInfo( $file, $prop, $result ) );
 140+ self::addTitleInfo( $info, $file->getTitle() );
 141+
140142 $fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $info );
141143 if ( !$fit ) {
142144 $this->setContinueEnumParameter( 'from', $this->keyToTitle( $row->img_name ) );
Index: trunk/phase3/RELEASE-NOTES
@@ -167,6 +167,7 @@
168168 * (bug 26548) Add iiurlparam param to query=imageinfo and query=stashimageinfo
169169 * (bug 27205) aiprop=metadata and aiprop=parsedcomment need help text
170170 * Add a amtitle param to meta=allmessages
 171+* (bug 25832) query=allimages now outputs ns/title as well
171172
172173 === Languages updated in 1.18 ===
173174

Status & tagging log