manual thumbnail option fix
authorMagnus Manske <magnusmanske@users.mediawiki.org>
Sat, 10 Jul 2004 20:00:41 +0000 (20:00 +0000)
committerMagnus Manske <magnusmanske@users.mediawiki.org>
Sat, 10 Jul 2004 20:00:41 +0000 (20:00 +0000)
includes/Skin.php

index 2df5c7c..ab40ff8 100644 (file)
@@ -1828,7 +1828,7 @@ class Skin {
                                        print 'rescaling by factor '. $height / $img->getHeight() . "<br>\n";
                                        $width = $img->getWidth() * $height / $img->getHeight();
                                }
-                               $url = $img->createThumb( $width );
+                               if ( '' == $manual_thumb ) $url = $img->createThumb( $width );
                        }
                } # endif $wgUseImageResize
                        
@@ -1885,7 +1885,7 @@ class Skin {
                        } else {
                                $boxheight = $h;
                        }
-                       $thumbUrl = $img->createThumb( $boxwidth );
+                       if ( '' == $manual_thumb ) $thumbUrl = $img->createThumb( $boxwidth );
                }
 
                if ( $manual_thumb != '' ) # Use manually specified thumbnail