Fix autoloading for new google SDK lib

This commit is contained in:
Vincent Petry 2016-05-24 10:58:16 +02:00
parent c23bc91198
commit 4635ed7748
No known key found for this signature in database
GPG Key ID: AF8F9EFC56562186
2 changed files with 1 additions and 3 deletions

View File

@ -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();

View File

@ -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 {