Index: trunk/phase3/thumb.php |
— | — | @@ -124,7 +124,7 @@ |
125 | 125 | $errorMsg = $thumb->getHtmlMsg(); |
126 | 126 | } elseif ( !$thumb->getPath() ) { |
127 | 127 | $errorMsg = wfMsgHtml( 'thumbnail_error', 'No path supplied in thumbnail object' ); |
128 | | - } elseif ( $thumb->getPath() == $img->getPath() ) { |
| 128 | + } elseif ( $thumb->getPath() == $sourcePath ) { |
129 | 129 | $errorMsg = wfMsgHtml( 'thumbnail_error', 'Image was not scaled, ' . |
130 | 130 | 'is the requested width bigger than the source?' ); |
131 | 131 | } else { |