From: Aaron Schulz Date: Wed, 13 Aug 2008 02:05:24 +0000 (+0000) Subject: use $sourcePath here too X-Git-Tag: 1.31.0-rc.0~45927 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=c64c3961cd3f350efced83d8e0cb5959ebc2d3d9;p=lhc%2Fweb%2Fwiklou.git use $sourcePath here too --- diff --git a/thumb.php b/thumb.php index 6af0698705..9fdc6017ba 100644 --- a/thumb.php +++ b/thumb.php @@ -124,7 +124,7 @@ function wfThumbMain() { $errorMsg = $thumb->getHtmlMsg(); } elseif ( !$thumb->getPath() ) { $errorMsg = wfMsgHtml( 'thumbnail_error', 'No path supplied in thumbnail object' ); - } elseif ( $thumb->getPath() == $img->getPath() ) { + } elseif ( $thumb->getPath() == $sourcePath ) { $errorMsg = wfMsgHtml( 'thumbnail_error', 'Image was not scaled, ' . 'is the requested width bigger than the source?' ); } else {