From 079e9cecbaa3c6f68db6f8b685ec41e078c94ff7 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Thu, 2 Jul 2015 13:00:21 +0200 Subject: Revert "Use OCP classes as much as possible in files_external" --- apps/files_external/lib/dropbox.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_external/lib/dropbox.php') 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'); -- cgit v1.2.3