X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fimport%2FImportStreamSource.php;h=94a2b937e0ec562952864ea82492f1e5e31f4d22;hp=8034400bad2331a34963278a2c8955385f80c57a;hb=36395150104588f2afea866c330b683e4329fa48;hpb=8bb5a6c461c31ee5ce6874548246fc2c520686f6 diff --git a/includes/import/ImportStreamSource.php b/includes/import/ImportStreamSource.php index 8034400bad..94a2b937e0 100644 --- a/includes/import/ImportStreamSource.php +++ b/includes/import/ImportStreamSource.php @@ -93,7 +93,7 @@ class ImportStreamSource implements ImportSource { } $fname = $upload['tmp_name']; if ( is_uploaded_file( $fname ) ) { - return ImportStreamSource::newFromFile( $fname ); + return self::newFromFile( $fname ); } else { return Status::newFatal( 'importnofile' ); } @@ -178,6 +178,6 @@ class ImportStreamSource implements ImportSource { $url = wfAppendQuery( $link, $params ); # For interwikis, use POST to avoid redirects. - return ImportStreamSource::newFromURL( $url, "POST" ); + return self::newFromURL( $url, "POST" ); } }