* Returning proportions of thumbnailed image
* INTERFACE CHANGE: thumbnail url is now returned as "thumburl" rather than "url"
* Adding RELEASE-NOTES entry that should've been added a couple of days ago
* prop=imageinfo interface changed: iihistory replaced by iilimit, iistart and iiend parameters
* Added amlang parameter to meta=allmessages
* Added apfilterlanglinks parameter to list=allpages, replacing query.php?what=nolanglinks
-* (bug 12718) Added action=paraminfo module that provides information about API modules and their parameters
+* (bug 12718) Added action=paraminfo module that provides information about API modules and their parameters
+* Added iiurlwidth and iiurlheight parameters to prop=imageinfo
=== Languages updated in 1.12 ===
}
if($this->fld_url) {
if($this->scale && !$f->isOld()) {
- $vals['url'] = $f->createThumb($this->urlwidth, $this->urlheight);
- } else {
- $vals['url'] = $f->getURL();
+ $thumb = $f->getThumbnail($this->urlwidth, $this->urlheight);
+ if($thumb)
+ {
+ $vals['thumburl'] = $thumb->getURL();
+ $vals['thumbwidth'] = $thumb->getWidth();
+ $vals['thumbheight'] = $thumb->getHeight();
+ }
}
+ $vals['url'] = $f->getURL();
}
if($this->fld_comment)
$vals['comment'] = $f->getDescription();