From c64c3961cd3f350efced83d8e0cb5959ebc2d3d9 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 13 Aug 2008 02:05:24 +0000 Subject: [PATCH] use $sourcePath here too --- thumb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.20.1