diff --git a/apps/files_external/ajax/oauth2.php b/apps/files_external/ajax/oauth2.php index b110cba9fe002a24512e946f31577375418502a2..3a0287e1bb302acd820fd319b7bf761e04f512f3 100644 --- a/apps/files_external/ajax/oauth2.php +++ b/apps/files_external/ajax/oauth2.php @@ -28,7 +28,7 @@ */ 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/autoload.php'; OCP\JSON::checkAppEnabled('files_external'); OCP\JSON::checkLoggedIn(); diff --git a/apps/files_external/lib/Lib/Storage/Google.php b/apps/files_external/lib/Lib/Storage/Google.php index 50d8849db1126f1898b9a0ba909bb534753b7f35..1fe96efcbfef9ee26c23bbe94e085f9d8a8dcf38 100644 --- a/apps/files_external/lib/Lib/Storage/Google.php +++ b/apps/files_external/lib/Lib/Storage/Google.php @@ -40,8 +40,6 @@ 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/autoload.php'; -require_once 'Google/Client.php'; -require_once 'Google/Service/Drive.php'; class Google extends \OC\Files\Storage\Common {