From: daniel Date: Wed, 28 Aug 2019 19:08:58 +0000 (+0200) Subject: Fix call to non-existing TempFSFileFactory::getTempFSFile() X-Git-Tag: 1.34.0-rc.0~514^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=60d5b8022d03fe13c8157c0dd08e404891bd2744;hp=a83b33582ae87efff13e68b67585ee0e1aeed036;p=lhc%2Fweb%2Fwiklou.git Fix call to non-existing TempFSFileFactory::getTempFSFile() Should be TempFSFileFactory::newTempFSFile() Bug: T231488 Change-Id: I9fbf7d993773f55965268ac10b347110148671c9 --- diff --git a/includes/upload/UploadFromChunks.php b/includes/upload/UploadFromChunks.php index 8c6b2f9c05..c28890baa1 100644 --- a/includes/upload/UploadFromChunks.php +++ b/includes/upload/UploadFromChunks.php @@ -161,7 +161,7 @@ class UploadFromChunks extends UploadFromFile { $ext = FileBackend::extensionFromPath( $this->mVirtualTempPath ); // Get a 0-byte temp file to perform the concatenation at $tmpFile = MediaWikiServices::getInstance()->getTempFSFileFactory() - ->getTempFSFile( 'chunkedupload_', $ext ); + ->newTempFSFile( 'chunkedupload_', $ext ); $tmpPath = false; // fail in concatenate() if ( $tmpFile ) { // keep alive with $this