r39267 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39266‎ | r39267 | r39268 >
Date:02:05, 13 August 2008
Author:aaron
Status:old
Tags:
Comment:
use $sourcePath here too
Modified paths:
  • /trunk/phase3/thumb.php (modified) (history)

Diff [purge]

Index: trunk/phase3/thumb.php
@@ -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() == $img->getPath() ) {
 128+ } elseif ( $thumb->getPath() == $sourcePath ) {
129129 $errorMsg = wfMsgHtml( 'thumbnail_error', 'Image was not scaled, ' .
130130 'is the requested width bigger than the source?' );
131131 } else {

Status & tagging log