summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/dropbox.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-07-02 13:00:21 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-07-02 13:00:21 +0200
commit079e9cecbaa3c6f68db6f8b685ec41e078c94ff7 (patch)
tree6a356fff03f7b1004065c278d779dacc62b173eb /apps/files_external/lib/dropbox.php
parentbfcb8ffeb3bf46963cb002feec07c08643ec9d82 (diff)
downloadnextcloud-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/dropbox.php')
-rw-r--r--apps/files_external/lib/dropbox.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php
index afdf09a676b..78219f8f06e 100644
--- a/apps/files_external/lib/dropbox.php
+++ b/apps/files_external/lib/dropbox.php
@@ -243,7 +243,7 @@ class Dropbox extends \OC\Files\Storage\Common {
switch ($mode) {
case 'r':
case 'rb':
- $tmpFile = \OCP\Files::tmpFile();
+ $tmpFile = \OC_Helper::tmpFile();
try {
$data = $this->dropbox->getFile($path);
file_put_contents($tmpFile, $data);
@@ -269,7 +269,7 @@ class Dropbox 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');