From: Yuri Astrakhan Date: Tue, 7 Aug 2007 03:32:58 +0000 (+0000) Subject: API: Now renders image size values as integers in json. X-Git-Tag: 1.31.0-rc.0~51845 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=3d56cd9944872fba297183255e1714332410bf2e;p=lhc%2Fweb%2Fwiklou.git API: Now renders image size values as integers in json. --- diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index f4f92fc0e3..9f3ce915d5 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -77,9 +77,9 @@ class ApiQueryImageInfo extends ApiQueryBase { $vals['anon'] = ''; } if ($fld_size) { - $vals['size'] = $line->img_size; - $vals['width'] = $line->img_width; - $vals['height'] = $line->img_height; + $vals['size'] = intval($line->img_size); + $vals['width'] = intval($line->img_width); + $vals['height'] = intval($line->img_height); } if ($fld_url) $vals['url'] = $isCur ? $img->getURL() : $img->getArchiveUrl($line->oi_archive_name);