Fix autoloading for new google SDK lib
This commit is contained in:
parent
c23bc91198
commit
4635ed7748
|
@ -28,7 +28,7 @@
|
||||||
*/
|
*/
|
||||||
set_include_path(get_include_path().PATH_SEPARATOR.
|
set_include_path(get_include_path().PATH_SEPARATOR.
|
||||||
\OC_App::getAppPath('files_external').'/3rdparty/google-api-php-client/src');
|
\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::checkAppEnabled('files_external');
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
|
|
|
@ -40,8 +40,6 @@ use Icewind\Streams\RetryWrapper;
|
||||||
set_include_path(get_include_path().PATH_SEPARATOR.
|
set_include_path(get_include_path().PATH_SEPARATOR.
|
||||||
\OC_App::getAppPath('files_external').'/3rdparty/google-api-php-client/src');
|
\OC_App::getAppPath('files_external').'/3rdparty/google-api-php-client/src');
|
||||||
require_once 'Google/autoload.php';
|
require_once 'Google/autoload.php';
|
||||||
require_once 'Google/Client.php';
|
|
||||||
require_once 'Google/Service/Drive.php';
|
|
||||||
|
|
||||||
class Google extends \OC\Files\Storage\Common {
|
class Google extends \OC\Files\Storage\Common {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue