* (bug 27708) list=users does not have a property to return user id
* (bug 27715) imageinfo didn't respect revdelete
* (bug 27862) Useremail module didn't properly return success on success.
+* (bug 27590) prop=imageinfo now allows querying the media type
=== Languages updated in 1.18 ===
$sha1 = isset( $prop['sha1'] );
$meta = isset( $prop['metadata'] );
$mime = isset( $prop['mime'] );
+ $mediatype = isset( $prop['mediatype'] );
$archive = isset( $prop['archivename'] );
$bitdepth = isset( $prop['bitdepth'] );
- if ( ( $url || $sha1 || $meta || $mime || $archive || $bitdepth )
+ if ( ( $url || $sha1 || $meta || $mime || $mediatype || $archive || $bitdepth )
&& $file->isDeleted( File::DELETED_FILE ) ) {
$vals['filehidden'] = '';
if ( $mime ) {
$vals['mime'] = $file->getMimeType();
}
+
+ if ( $mediatype ) {
+ $vals['mediatype'] = $file->getMediaType();
+ }
if ( $archive && $file->isOld() ) {
$vals['archivename'] = $file->getArchiveName();
'sha1',
'mime',
'thumbmime',
+ 'mediatype',
'metadata',
'archivename',
'bitdepth',
' sha1 - Adds SHA-1 hash for the image',
' mime - Adds MIME type of the image',
' thumbmime - Adds MIME type of the image thumbnail (requires url)',
+ ' mediatype - Adds the media type of the image',
' metadata - Lists EXIF metadata for the version of the image',
' archivename - Adds the file name of the archive version for non-latest versions',
' bitdepth - Adds the bit depth of the version',