dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
registration: Avoid redundant LBYL check in ExtensionRegistry::queue()
[lhc/web/wiklou.git]
/
includes
/
upload
/
UploadFromUrl.php
diff --git
a/includes/upload/UploadFromUrl.php
b/includes/upload/UploadFromUrl.php
index
b071774
..
b92fcc5
100644
(file)
--- a/
includes/upload/UploadFromUrl.php
+++ b/
includes/upload/UploadFromUrl.php
@@
-1,4
+1,7
@@
<?php
<?php
+
+use MediaWiki\MediaWikiServices;
+
/**
* Backend for uploading files from a HTTP resource.
*
/**
* Backend for uploading files from a HTTP resource.
*
@@
-201,7
+204,8
@@
class UploadFromUrl extends UploadBase {
* @return string Path to the file
*/
protected function makeTemporaryFile() {
* @return string Path to the file
*/
protected function makeTemporaryFile() {
- $tmpFile = TempFSFile::factory( 'URL', 'urlupload_', wfTempDir() );
+ $tmpFile = MediaWikiServices::getInstance()->getTempFSFileFactory()
+ ->newTempFSFile( 'URL', 'urlupload_' );
$tmpFile->bind( $this );
return $tmpFile->getPath();
$tmpFile->bind( $this );
return $tmpFile->getPath();