Removed image resizing test, now done in Image::createThumb.
authorJens Frank <jeluf@users.mediawiki.org>
Thu, 29 Apr 2004 05:00:18 +0000 (05:00 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Thu, 29 Apr 2004 05:00:18 +0000 (05:00 +0000)
The web browser will have to resize the image

includes/Skin.php

index c19b90e..35b6f9e 100644 (file)
@@ -1783,10 +1783,10 @@ class Skin {
                        $thumbUrl  = $url;
                } else {
                        $boxheight  = intval( $height/($width/$boxwidth) );
-                       if ( $boxwidth > $width ) {
-                               $boxwidth  = $width;
-                               $boxheight = $height;
-                       }
+                       if ( $boxwidth > $width ) {
+                       #       $boxwidth  = $width;
+                       #       $boxheight = $height;
+                       #}
                        $thumbUrl = $img->createThumb( $boxwidth );
                }
                $oboxwidth = $boxwidth + 2;