From: Antoine Musso Date: Fri, 8 Jul 2005 10:18:14 +0000 (+0000) Subject: Fix #153 path by X-Git-Tag: 1.5.0beta4~195 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=daf5f83b914fe111766badc42cb2153317fca761;p=lhc%2Fweb%2Fwiklou.git Fix #153 path by --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9097ac65a1..03a8202308 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 height attribute == Changes since 1.5beta3 == diff --git a/includes/Linker.php b/includes/Linker.php index 45c3029909..76ddde2a2f 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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 ) ) {