From: Brion Vibber Date: Fri, 7 Mar 2008 23:30:19 +0000 (+0000) Subject: use wfLocalFile for file import -- any uploads will be local X-Git-Tag: 1.31.0-rc.0~49205 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=d09ee4f732bf6b09e839f591a4d7b57baad741a4;p=lhc%2Fweb%2Fwiklou.git use wfLocalFile for file import -- any uploads will be local --- 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" );