X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fimport%2FImportStreamSource.php;h=e2e8dd52a45a13cb365d847ae501f86b874bd384;hb=92ce715a55ab6998f916cbe9792af9fdb7d27fd9;hp=0e03d9fbcef424cdb0c8d2a7008d4bec57a7b528;hpb=072e84d2480446f3b76c6cffe9cd414de5b0860c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/import/ImportStreamSource.php b/includes/import/ImportStreamSource.php index 0e03d9fbce..e2e8dd52a4 100644 --- a/includes/import/ImportStreamSource.php +++ b/includes/import/ImportStreamSource.php @@ -109,7 +109,7 @@ class ImportStreamSource implements ImportSource { # quicker and sorts out user-agent problems which might # otherwise prevent importing from large sites, such # as the Wikimedia cluster, etc. - $data = Http::request( $method, $url, array( 'followRedirects' => true ), __METHOD__ ); + $data = Http::request( $method, $url, [ 'followRedirects' => true ], __METHOD__ ); if ( $data !== false ) { $file = tmpfile(); fwrite( $file, $data ); @@ -154,7 +154,7 @@ class ImportStreamSource implements ImportSource { $link = $firstIw->getURL( strtr( "${additionalIwPrefixes}Special:Export/$page", ' ', '_' ) ); - $params = array(); + $params = []; if ( $history ) { $params['history'] = 1; }