diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-02 13:00:21 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-02 13:00:21 +0200 |
commit | 079e9cecbaa3c6f68db6f8b685ec41e078c94ff7 (patch) | |
tree | 6a356fff03f7b1004065c278d779dacc62b173eb /apps/files_external/lib/swift.php | |
parent | bfcb8ffeb3bf46963cb002feec07c08643ec9d82 (diff) | |
download | nextcloud-server-079e9cecbaa3c6f68db6f8b685ec41e078c94ff7.tar.gz nextcloud-server-079e9cecbaa3c6f68db6f8b685ec41e078c94ff7.zip |
Revert "Use OCP classes as much as possible in files_external"
Diffstat (limited to 'apps/files_external/lib/swift.php')
-rw-r--r-- | apps/files_external/lib/swift.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php index 4104e97fbe6..50f0d40805a 100644 --- a/apps/files_external/lib/swift.php +++ b/apps/files_external/lib/swift.php @@ -310,7 +310,7 @@ class Swift extends \OC\Files\Storage\Common { switch ($mode) { case 'r': case 'rb': - $tmpFile = \OCP\Files::tmpFile(); + $tmpFile = \OC_Helper::tmpFile(); self::$tmpFiles[$tmpFile] = $path; try { $object = $this->getContainer()->getObject($path); @@ -348,7 +348,7 @@ class Swift extends \OC\Files\Storage\Common { } else { $ext = ''; } - $tmpFile = \OCP\Files::tmpFile($ext); + $tmpFile = \OC_Helper::tmpFile($ext); \OC\Files\Stream\Close::registerCallback($tmpFile, array($this, 'writeBack')); if ($this->file_exists($path)) { $source = $this->fopen($path, 'r'); |