From 62ffcc2ee4a165a2f636f5279f67cfb1334406f9 Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Sat, 10 Jul 2004 20:00:41 +0000 Subject: [PATCH] manual thumbnail option fix --- includes/Skin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1