Fix #153 path by <stehan dot walter at epfl dot ch>
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 8 Jul 2005 10:18:14 +0000 (10:18 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 8 Jul 2005 10:18:14 +0000 (10:18 +0000)
RELEASE-NOTES
includes/Linker.php

index 9097ac6..03a8202 100644 (file)
@@ -537,7 +537,7 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new.
 * (bug 2709) Some messages were not read from database
 * (bug 2416) Don't allow search engine robots to index or follow nonexisting articles
 * Fix escaping in page move template.
-
+* (bug 153) Discrepancy between thumbnail size and <img> height attribute
 
 == Changes since 1.5beta3 ==
 
index 45c3029..76ddde2 100644 (file)
@@ -489,7 +489,7 @@ class Linker {
                        $boxheight = $height;
                        $thumbUrl  = $url;
                } else {
-                       $h  = intval( $height/($width/$boxwidth) );
+                       $h  = round( $height/($width/$boxwidth) );
                        $oboxwidth = $boxwidth + 2;
                        if ( ( ! $boxheight === false ) &&  ( $h > $boxheight ) )
                        {