- // might be a cleaner way to call this:
- $imParam = ApiQueryImageInfo::getAllowedParams();
- $imProp = $imParam['prop'][ApiBase::PARAM_TYPE];
- $result['imageinfo'] = ApiQueryImageInfo::getInfo( $file,
- array_flip( $imProp ),
- $this->getResult() );
+ //get all the image properties:
+ $imParam = Array('timestamp',
+ 'user',
+ 'comment',
+ 'url',
+ 'size',
+ 'sha1',
+ 'mime',
+ 'metadata',
+ 'archivename',
+ 'bitdepth');
+ $result['imageinfo'] = ApiQueryImageInfo::getInfo( $file,
+ array_flip( $imParam ),
+ $this->getResult() );
+