r41303 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41302‎ | r41303 | r41304 >
Date:11:04, 27 September 2008
Author:catrope
Status:old
Tags:
Comment:
API: Add the name attribute back to list=allimages; it disappeared in r35085
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryAllimages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryAllimages.php
@@ -109,10 +109,10 @@
110110
111111 if (is_null($resultPageSet)) {
112112 $file = $repo->newFileFromRow( $row );
113 -
114 - $data[] = ApiQueryImageInfo::getInfo( $file, $prop, $result );
 113+ $data[] = array_merge(array('name' => $row->img_name),
 114+ ApiQueryImageInfo::getInfo($file, $prop, $result));
115115 } else {
116 - $data[] = Title::makeTitle( NS_IMAGE, $row->img_name );
 116+ $data[] = Title::makeTitle(NS_IMAGE, $row->img_name);
117117 }
118118 }
119119 $db->freeResult($res);

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r35085Use ApiQueryImageInfo::getInfo for both ApiQueryAllimages and ApiQueryImageIn...btongminh14:32, 20 May 2008