summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/dropbox.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/dropbox.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/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 78219f8f06e..afdf09a676b 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 = \OC_Helper::tmpFile();
+ $tmpFile = \OCP\Files::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 = \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');