]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix require_once for 3rdparty in google ajax frontend
authorMichael Gapczynski <mtgap@owncloud.com>
Sat, 18 May 2013 18:51:25 +0000 (14:51 -0400)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Sat, 3 Aug 2013 12:39:22 +0000 (15:39 +0300)
apps/files_external/ajax/google.php

index bd5a6099bb37271adb2e4a419ba1fbb4de4ad415..e63b7cb07b96039020ac7bf1663e5edf4cf3f184 100644 (file)
@@ -1,6 +1,7 @@
 <?php
-
-require_once 'google-api-php-client/src/Google_Client.php';
+set_include_path(get_include_path().PATH_SEPARATOR.
+       \OC_App::getAppPath('files_external').'/3rdparty/google-api-php-client/src');
+require_once 'Google_Client.php';
 
 OCP\JSON::checkAppEnabled('files_external');
 OCP\JSON::checkLoggedIn();