Index: trunk/phase3/includes/api/ApiQueryAllimages.php |
— | — | @@ -109,10 +109,10 @@ |
110 | 110 | |
111 | 111 | if (is_null($resultPageSet)) { |
112 | 112 | $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)); |
115 | 115 | } else { |
116 | | - $data[] = Title::makeTitle( NS_IMAGE, $row->img_name ); |
| 116 | + $data[] = Title::makeTitle(NS_IMAGE, $row->img_name); |
117 | 117 | } |
118 | 118 | } |
119 | 119 | $db->freeResult($res); |