summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Storage/Google.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Lib/Storage/Google.php')
-rw-r--r--apps/files_external/lib/Lib/Storage/Google.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/files_external/lib/Lib/Storage/Google.php b/apps/files_external/lib/Lib/Storage/Google.php
index 9e5409e226e..7e014b0a44c 100644
--- a/apps/files_external/lib/Lib/Storage/Google.php
+++ b/apps/files_external/lib/Lib/Storage/Google.php
@@ -39,8 +39,7 @@ use Icewind\Streams\RetryWrapper;
set_include_path(get_include_path().PATH_SEPARATOR.
\OC_App::getAppPath('files_external').'/3rdparty/google-api-php-client/src');
-require_once 'Google/Client.php';
-require_once 'Google/Service/Drive.php';
+require_once 'Google/autoload.php';
class Google extends \OC\Files\Storage\Common {
@@ -159,7 +158,7 @@ class Google extends \OC\Files\Storage\Common {
/**
* Set the Google_Service_Drive_DriveFile object in the cache
* @param string $path
- * @param Google_Service_Drive_DriveFile|false $file
+ * @param \Google_Service_Drive_DriveFile|false $file
*/
private function setDriveFile($path, $file) {
$path = trim($path, '/');
@@ -448,7 +447,7 @@ class Google extends \OC\Files\Storage\Common {
$response = $client->get($downloadUrl, [
'headers' => $httpRequest->getRequestHeaders(),
'stream' => true,
- 'verify' => __DIR__ . '/../../3rdparty/google-api-php-client/src/Google/IO/cacerts.pem',
+ 'verify' => realpath(__DIR__ . '/../../../3rdparty/google-api-php-client/src/Google/IO/cacerts.pem'),
]);
} catch (RequestException $e) {
if(!is_null($e->getResponse())) {