X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fupload%2FUploadFromChunks.php;h=c28890baa177188d84a8b8c3f154904671c3d067;hb=748c5eae2fd5d897c94c48771161c259941a7488;hp=cc527e7e4b1bbafb08dae4f46c9c91a4030b2eb7;hpb=22ac82f4cd7960735339d23865fce21665ea9c17;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/upload/UploadFromChunks.php b/includes/upload/UploadFromChunks.php index cc527e7e4b..c28890baa1 100644 --- a/includes/upload/UploadFromChunks.php +++ b/includes/upload/UploadFromChunks.php @@ -1,4 +1,7 @@ mVirtualTempPath ); // Get a 0-byte temp file to perform the concatenation at - $tmpFile = TempFSFile::factory( 'chunkedupload_', $ext, wfTempDir() ); + $tmpFile = MediaWikiServices::getInstance()->getTempFSFileFactory() + ->newTempFSFile( 'chunkedupload_', $ext ); $tmpPath = false; // fail in concatenate() if ( $tmpFile ) { // keep alive with $this