Fix call to non-existing TempFSFileFactory::getTempFSFile()
authordaniel <dkinzler@wikimedia.org>
Wed, 28 Aug 2019 19:08:58 +0000 (21:08 +0200)
committerdaniel <dkinzler@wikimedia.org>
Wed, 28 Aug 2019 19:08:58 +0000 (21:08 +0200)
Should be TempFSFileFactory::newTempFSFile()

Bug: T231488
Change-Id: I9fbf7d993773f55965268ac10b347110148671c9

includes/upload/UploadFromChunks.php

index 8c6b2f9..c28890b 100644 (file)
@@ -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