From 89601ad2305418d9bdeeed8ab207e55d94c802df Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sun, 15 May 2011 10:43:51 +0000 Subject: [PATCH] Follow-up r87176 use wfLocalFile instead of wfFindFile --- includes/Export.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1