use $sourcePath here too
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 13 Aug 2008 02:05:24 +0000 (02:05 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 13 Aug 2008 02:05:24 +0000 (02:05 +0000)
thumb.php

index 6af0698..9fdc601 100644 (file)
--- 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 {