From 3d56cd9944872fba297183255e1714332410bf2e Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Tue, 7 Aug 2007 03:32:58 +0000 Subject: [PATCH] API: Now renders image size values as integers in json. --- includes/api/ApiQueryImageInfo.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.20.1