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=956c2430c7b8fceb289aaeacc8d6c2e0def2c56e;hpb=85a52faa37f548fe26688ac3e182ae1e5eda3033 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" ); } }