Convert size, width and height to int, as before r29981
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 2 Feb 2008 16:04:54 +0000 (16:04 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 2 Feb 2008 16:04:54 +0000 (16:04 +0000)
includes/api/ApiQueryImageInfo.php

index f1a335e..53239b2 100644 (file)
@@ -112,9 +112,9 @@ class ApiQueryImageInfo extends ApiQueryBase {
                                $vals['anon'] = '';
                }
                if($this->fld_size) {
-                       $vals['size'] = $f->getSize();
-                       $vals['width'] = $f->getWidth();
-                       $vals['height'] = $f->getHeight();
+                       $vals['size'] = intval($f->getSize());
+                       $vals['width'] = intval($f->getWidth());
+                       $vals['height'] = intval($f->getHeight());
                }
                if($this->fld_url) {
                        if($this->scale && !$f->isOld()) {