From daf5f83b914fe111766badc42cb2153317fca761 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 8 Jul 2005 10:18:14 +0000 Subject: [PATCH] Fix #153 path by --- RELEASE-NOTES | 2 +- includes/Linker.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) ) { -- 2.20.1