(bug 25832) query=allimages now outputs ns/title as well
This commit is contained in:
parent
84ae3fefb3
commit
960130837c
2 changed files with 3 additions and 0 deletions
|
|
@ -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 ===
|
||||
|
||||
|
|
|
|||
|
|
@ -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 ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue