diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-04-01 14:50:51 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-01 09:08:28 +0200 |
commit | 728a22cda18845f831d65eac0c6f49b9f9b3b42f (patch) | |
tree | 8c3a6b1f7c9dbf38b948bf7d919dceeed13ff413 /apps/files_external/lib/google.php | |
parent | b5c9196ffcf8f5300d96e7d2bdd78f2695f6fd7a (diff) | |
download | nextcloud-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/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 8199d97eacb..b4cc9bb0eab 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 = \OC_Helper::tmpFile($ext); + $tmpFile = \OCP\Files::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 = \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, 'rb'); |