From: Aaron Schulz Date: Wed, 13 Aug 2008 02:02:36 +0000 (+0000) Subject: use getArchivePath() X-Git-Tag: 1.31.0-rc.0~45928 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=e983e01e2c90070c7cdb1101564ee36a3600e028;p=lhc%2Fweb%2Fwiklou.git use getArchivePath() --- diff --git a/thumb.php b/thumb.php index bb37e6e7a2..6af0698705 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 = $img->getPath(); + $sourcePath = $isOld ? $img->getArchivePath() : $img->getPath(); if ( $sourcePath === false ) { wfThumbError( 500, 'The source file is not locally accessible.' ); return;