use wfLocalFile for file import -- any uploads will be local
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 7 Mar 2008 23:30:19 +0000 (23:30 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 7 Mar 2008 23:30:19 +0000 (23:30 +0000)
includes/SpecialImport.php

index 1d1bc63..ef07c78 100644 (file)
@@ -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" );