Index: branches/wmf/1.17wmf1/includes/api/ApiQueryImageInfo.php |
— | — | @@ -283,8 +283,8 @@ |
284 | 284 | } |
285 | 285 | |
286 | 286 | if ( $url ) { |
287 | | - if ( !is_null( $thumbParams ) ) { |
288 | | - $mto = $file->transform( $thumbParams ); |
| 287 | + if ( !is_null( $scale ) && !$file->isOld() ) { |
| 288 | + $mto = $file->transform( array( 'width' => $scale['width'], 'height' => $scale['height'] ) ); |
289 | 289 | if ( $mto && !$mto->isError() ) { |
290 | 290 | $vals['thumburl'] = wfExpandUrl( $mto->getUrl() ); |
291 | 291 | |