Index: trunk/phase3/includes/api/ApiQueryImageInfo.php |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | |
55 | 55 | if($params['urlheight'] != -1 && $params['urlwidth'] == -1) |
56 | 56 | $this->dieUsage("iiurlheight cannot be used without iiurlwidth", 'iiurlwidth'); |
57 | | - $this->scale = $params['urlwidth'] != -1; |
| 57 | + $this->scale = ($params['urlwidth'] != -1); |
58 | 58 | $this->urlwidth = $params['urlwidth']; |
59 | 59 | $this->urlheight = $params['urlheight']; |
60 | 60 | |
— | — | @@ -117,7 +117,7 @@ |
118 | 118 | $vals['height'] = $f->getHeight(); |
119 | 119 | } |
120 | 120 | if($this->fld_url) { |
121 | | - if($this->scale) { |
| 121 | + if($this->scale && !$f->isOld()) { |
122 | 122 | $vals['url'] = $f->createThumb($this->urlwidth, $this->urlheight); |
123 | 123 | } else { |
124 | 124 | $vals['url'] = $f->getURL(); |