r24642 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24641‎ | r24642 | r24643 >
Date:03:32, 7 August 2007
Author:yurik
Status:old
Tags:
Comment:
API: Now renders image size values as integers in json.
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryImageInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryImageInfo.php
@@ -77,9 +77,9 @@
7878 $vals['anon'] = '';
7979 }
8080 if ($fld_size) {
81 - $vals['size'] = $line->img_size;
82 - $vals['width'] = $line->img_width;
83 - $vals['height'] = $line->img_height;
 81+ $vals['size'] = intval($line->img_size);
 82+ $vals['width'] = intval($line->img_width);
 83+ $vals['height'] = intval($line->img_height);
8484 }
8585 if ($fld_url)
8686 $vals['url'] = $isCur ? $img->getURL() : $img->getArchiveUrl($line->oi_archive_name);

Follow-up revisions

RevisionCommit summaryAuthorDate
r24705Merged revisions 24632-24693 via svnmerge from...david19:15, 9 August 2007

Status & tagging log