From: Magnus Manske Date: Sat, 10 Jul 2004 20:00:41 +0000 (+0000) Subject: manual thumbnail option fix X-Git-Tag: 1.5.0alpha1~2693 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=62ffcc2ee4a165a2f636f5279f67cfb1334406f9;p=lhc%2Fweb%2Fwiklou.git manual thumbnail option fix --- diff --git a/includes/Skin.php b/includes/Skin.php index 2df5c7c2f6..ab40ff88e0 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1828,7 +1828,7 @@ class Skin { print 'rescaling by factor '. $height / $img->getHeight() . "
\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