* (bug 2267) Don't generate thumbnail at the same size as the source image.
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 30 May 2005 07:21:10 +0000 (07:21 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 30 May 2005 07:21:10 +0000 (07:21 +0000)
RELEASE-NOTES
includes/Image.php

index 083f861..a215674 100644 (file)
@@ -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 ===
index e93d669..3194ab2 100644 (file)
@@ -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() );
                }