summaryrefslogtreecommitdiffstats
path: root/owncloud-8.2.3-composer_include_path.patch
blob: 7832dc8661ca0323b2bdf05c2bbb452e60046842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/lib/base.php b/lib/base.php
index 5ce5fae..544e159 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -498,7 +498,10 @@ class OC {
 			if (!file_exists($vendorAutoLoad)) {
 				throw new \RuntimeException('Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".');
 			}
-			require_once $vendorAutoLoad;
+			$loader = require_once $vendorAutoLoad;
+            $loader->add('Sabre', '/usr/share/php');
+            $loader->add('Sabre\VObject', '/usr/share/php');
+            $loader->setUseIncludePath(true);
 
 		} catch (\RuntimeException $e) {
 			OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);