From d09ee4f732bf6b09e839f591a4d7b57baad741a4 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 7 Mar 2008 23:30:19 +0000 Subject: [PATCH] use wfLocalFile for file import -- any uploads will be local --- includes/SpecialImport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialImport.php b/includes/SpecialImport.php index 1d1bc63c3a..ef07c78ca6 100644 --- a/includes/SpecialImport.php +++ b/includes/SpecialImport.php @@ -451,7 +451,7 @@ class WikiRevision { // it may also create a page without our desire, also wrong potentially. // and, it will record a *current* upload, but we might want an archive version here - $file = wfFindFile( $this->getTitle() ); + $file = wfLocalFile( $this->getTitle() ); if( !$file ) { var_dump( $file ); wfDebug( "IMPORT: Bad file. :(\n" ); -- 2.20.1