summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/swift.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-04-01 14:50:51 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-07-01 09:08:28 +0200
commit728a22cda18845f831d65eac0c6f49b9f9b3b42f (patch)
tree8c3a6b1f7c9dbf38b948bf7d919dceeed13ff413 /apps/files_external/lib/swift.php
parentb5c9196ffcf8f5300d96e7d2bdd78f2695f6fd7a (diff)
downloadnextcloud-server-728a22cda18845f831d65eac0c6f49b9f9b3b42f.tar.gz
nextcloud-server-728a22cda18845f831d65eac0c6f49b9f9b3b42f.zip
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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php
index 50f0d40805a..4104e97fbe6 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 = \OC_Helper::tmpFile();
+ $tmpFile = \OCP\Files::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 = \OC_Helper::tmpFile($ext);
+ $tmpFile = \OCP\Files::tmpFile($ext);
\OC\Files\Stream\Close::registerCallback($tmpFile, array($this, 'writeBack'));
if ($this->file_exists($path)) {
$source = $this->fopen($path, 'r');