From: Brion Vibber Date: Mon, 30 May 2005 07:21:10 +0000 (+0000) Subject: * (bug 2267) Don't generate thumbnail at the same size as the source image. X-Git-Tag: 1.5.0alpha2~34 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=3e99b0178f619a75441bdc5c851768ec815e90c8;p=lhc%2Fweb%2Fwiklou.git * (bug 2267) Don't generate thumbnail at the same size as the source image. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 083f8617bd..a21567426b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -222,6 +222,7 @@ Various bugfixes, small features, and a few experimental things: * Simple rate limiter for edits and page moves; set $wgRateLimits (somewhat experimental; currently needs memcached) * (bug 2262) Hide math preferences when TeX is not enabled +* (bug 2267) Don't generate thumbnail at the same size as the source image. === Caveats === diff --git a/includes/Image.php b/includes/Image.php index e93d669d36..3194ab2b0b 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -907,7 +907,7 @@ class Image return null; } - if( $width > $this->width && !$this->mustRender() ) { + if( $width >= $this->width && !$this->mustRender() ) { # Don't make an image bigger than the source return new ThumbnailImage( $this->getViewURL(), $this->getWidth(), $this->getHeight() ); }