* (bug 923) Fix title and subtitle for rclinked special page
* (bug 2642) watchdetails message in several languages used <a></a> instead of [ ]
* (bug 2181) basic CSB language localisation by Tomasz G. Sienicki (thanks for the patch)
+* (bug 2632) also adjust height when zooming an image by giving only width
+
=== Caveats ===
if ( $height !== false && ( $img->getHeight() * $width / $img->getWidth() > $height ) ) {
$width = $img->getWidth() * $height / $img->getHeight();
}
- if ( '' == $manual_thumb ) {
+ if ( $manual_thumb == '') {
$thumb = $img->getThumbnail( $width );
if ( $thumb ) {
- $height = $thumb->height;
+ // $height = $thumb->height;
+ $height = floor($thumb->height * $width / $img->width);
$url = $thumb->getUrl( );
}
}