Index: trunk/phase3/includes/Linker.php |
— | — | @@ -418,10 +418,11 @@ |
419 | 419 | if ( $height !== false && ( $img->getHeight() * $width / $img->getWidth() > $height ) ) { |
420 | 420 | $width = $img->getWidth() * $height / $img->getHeight(); |
421 | 421 | } |
422 | | - if ( '' == $manual_thumb ) { |
| 422 | + if ( $manual_thumb == '') { |
423 | 423 | $thumb = $img->getThumbnail( $width ); |
424 | 424 | if ( $thumb ) { |
425 | | - $height = $thumb->height; |
| 425 | + // $height = $thumb->height; |
| 426 | + $height = floor($thumb->height * $width / $img->width); |
426 | 427 | $url = $thumb->getUrl( ); |
427 | 428 | } |
428 | 429 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -462,7 +462,9 @@ |
463 | 463 | * (bug 923) Fix title and subtitle for rclinked special page |
464 | 464 | * (bug 2642) watchdetails message in several languages used <a></a> instead of [ ] |
465 | 465 | * (bug 2181) basic CSB language localisation by Tomasz G. Sienicki (thanks for the patch) |
| 466 | +* (bug 2632) also adjust height when zooming an image by giving only width |
466 | 467 | |
| 468 | + |
467 | 469 | === Caveats === |
468 | 470 | |
469 | 471 | Some output, particularly involving user-supplied inline HTML, may not |