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/google.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/google.php')
-rw-r--r-- | apps/files_external/lib/google.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php index b4cc9bb0eab..8199d97eacb 100644 --- a/apps/files_external/lib/google.php +++ b/apps/files_external/lib/google.php @@ -428,7 +428,7 @@ class Google extends \OC\Files\Storage\Common { $request = new \Google_Http_Request($downloadUrl, 'GET', null, null); $httpRequest = $this->client->getAuth()->authenticatedRequest($request); if ($httpRequest->getResponseHttpCode() == 200) { - $tmpFile = \OCP\Files::tmpFile($ext); + $tmpFile = \OC_Helper::tmpFile($ext); $data = $httpRequest->getResponseBody(); file_put_contents($tmpFile, $data); return fopen($tmpFile, $mode); @@ -448,7 +448,7 @@ class Google extends \OC\Files\Storage\Common { case 'x+': case 'c': case 'c+': - $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, 'rb'); |