From: Aaron Schulz Date: Wed, 13 Aug 2008 02:09:10 +0000 (+0000) Subject: revert bogus change X-Git-Tag: 1.31.0-rc.0~45926 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=9f8228e6594fe883c4624c220f68e6b405d6b66d;p=lhc%2Fweb%2Fwiklou.git revert bogus change --- diff --git a/thumb.php b/thumb.php index 9fdc6017ba..bb37e6e7a2 100644 --- a/thumb.php +++ b/thumb.php @@ -73,7 +73,7 @@ function wfThumbMain() { wfThumbError( 404, 'The source file for the specified thumbnail does not exist.' ); return; } - $sourcePath = $isOld ? $img->getArchivePath() : $img->getPath(); + $sourcePath = $img->getPath(); if ( $sourcePath === false ) { wfThumbError( 500, 'The source file is not locally accessible.' ); return; @@ -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() == $sourcePath ) { + } elseif ( $thumb->getPath() == $img->getPath() ) { $errorMsg = wfMsgHtml( 'thumbnail_error', 'Image was not scaled, ' . 'is the requested width bigger than the source?' ); } else {