r39268 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39267‎ | r39268 | r39269 >
Date:02:09, 13 August 2008
Author:aaron
Status:old
Tags:
Comment:
revert bogus change
Modified paths:
  • /trunk/phase3/thumb.php (modified) (history)

Diff [purge]

Index: trunk/phase3/thumb.php
@@ -73,7 +73,7 @@
7474 wfThumbError( 404, 'The source file for the specified thumbnail does not exist.' );
7575 return;
7676 }
77 - $sourcePath = $isOld ? $img->getArchivePath() : $img->getPath();
 77+ $sourcePath = $img->getPath();
7878 if ( $sourcePath === false ) {
7979 wfThumbError( 500, 'The source file is not locally accessible.' );
8080 return;
@@ -124,7 +124,7 @@
125125 $errorMsg = $thumb->getHtmlMsg();
126126 } elseif ( !$thumb->getPath() ) {
127127 $errorMsg = wfMsgHtml( 'thumbnail_error', 'No path supplied in thumbnail object' );
128 - } elseif ( $thumb->getPath() == $sourcePath ) {
 128+ } elseif ( $thumb->getPath() == $img->getPath() ) {
129129 $errorMsg = wfMsgHtml( 'thumbnail_error', 'Image was not scaled, ' .
130130 'is the requested width bigger than the source?' );
131131 } else {

Status & tagging log