use getArchivePath()
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 13 Aug 2008 02:02:36 +0000 (02:02 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 13 Aug 2008 02:02:36 +0000 (02:02 +0000)
thumb.php

index bb37e6e..6af0698 100644 (file)
--- 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 = $img->getPath();
+       $sourcePath = $isOld ? $img->getArchivePath() : $img->getPath();
        if ( $sourcePath === false ) {
                wfThumbError( 500, 'The source file is not locally accessible.' );
                return;