From: Bryan Tong Minh Date: Sun, 15 May 2011 10:43:51 +0000 (+0000) Subject: Follow-up r87176 use wfLocalFile instead of wfFindFile X-Git-Tag: 1.31.0-rc.0~30166 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=89601ad2305418d9bdeeed8ab207e55d94c802df;p=lhc%2Fweb%2Fwiklou.git Follow-up r87176 use wfLocalFile instead of wfFindFile --- diff --git a/includes/Export.php b/includes/Export.php index ceda80b5eb..2c8a7487fd 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -602,8 +602,8 @@ class XmlDumpWriter { */ function writeUploads( $row, $dumpContents = false ) { if ( $row->page_namespace == NS_IMAGE ) { - $img = wfFindFile( $row->page_title ); - if ( $img ) { + $img = wfLocalFile( $row->page_title ); + if ( $img && $img->exists() ) { $out = ''; foreach ( array_reverse( $img->getHistory() ) as $ver ) { $out .= $this->writeUpload( $ver, $dumpContents );