Index: trunk/phase3/includes/api/ApiQueryImageInfo.php |
— | — | @@ -222,6 +222,11 @@ |
223 | 223 | $vals['thumbwidth'] = intval( $file->getWidth() ); |
224 | 224 | $vals['thumbheight'] = intval( $file->getHeight() ); |
225 | 225 | } |
| 226 | + |
| 227 | + if ( isset( $prop['thumbmime'] ) ) { |
| 228 | + $thumbFile = UnregisteredLocalFile::newFromPath( $mto->getPath(), false ); |
| 229 | + $vals['thumbmime'] = $thumbFile->getMimeType(); |
| 230 | + } |
226 | 231 | } |
227 | 232 | } |
228 | 233 | $vals['url'] = $file->getFullURL(); |
— | — | @@ -319,6 +324,7 @@ |
320 | 325 | 'dimensions', // For backwards compatibility with Allimages |
321 | 326 | 'sha1', |
322 | 327 | 'mime', |
| 328 | + 'thumbmime', |
323 | 329 | 'metadata', |
324 | 330 | 'archivename', |
325 | 331 | 'bitdepth', |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -212,6 +212,7 @@ |
213 | 213 | similar to prop=categories's clcategorie |
214 | 214 | * (bug 23834) Invalid "thumbwidth" and "thumbheight" in "imageinfo" query when |
215 | 215 | thumbnailing larger than original image |
| 216 | +* (bug 23835) Need "thumbmime" result in "imageinfo" query |
216 | 217 | |
217 | 218 | === Languages updated in 1.17 === |
218 | 219 | |