r29982 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29981‎ | r29982 | r29983 >
Date:13:22, 20 January 2008
Author:catrope
Status:old
Tags:
Comment:
Small fix
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryImageInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryImageInfo.php
@@ -53,7 +53,7 @@
5454
5555 if($params['urlheight'] != -1 && $params['urlwidth'] == -1)
5656 $this->dieUsage("iiurlheight cannot be used without iiurlwidth", 'iiurlwidth');
57 - $this->scale = $params['urlwidth'] != -1;
 57+ $this->scale = ($params['urlwidth'] != -1);
5858 $this->urlwidth = $params['urlwidth'];
5959 $this->urlheight = $params['urlheight'];
6060
@@ -117,7 +117,7 @@
118118 $vals['height'] = $f->getHeight();
119119 }
120120 if($this->fld_url) {
121 - if($this->scale) {
 121+ if($this->scale && !$f->isOld()) {
122122 $vals['url'] = $f->createThumb($this->urlwidth, $this->urlheight);
123123 } else {
124124 $vals['url'] = $f->getURL();

Status & tagging log