r39266 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39265‎ | r39266 | r39267 >
Date:02:02, 13 August 2008
Author:aaron
Status:old
Tags:
Comment:
use getArchivePath()
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 = $img->getPath();
 77+ $sourcePath = $isOld ? $img->getArchivePath() : $img->getPath();
7878 if ( $sourcePath === false ) {
7979 wfThumbError( 500, 'The source file is not locally accessible.' );
8080 return;

Status & tagging log