diff options
Diffstat (limited to 'owncloud-8.2.3-composer_include_path.patch')
-rw-r--r-- | owncloud-8.2.3-composer_include_path.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/owncloud-8.2.3-composer_include_path.patch b/owncloud-8.2.3-composer_include_path.patch new file mode 100644 index 0000000..7832dc8 --- /dev/null +++ b/owncloud-8.2.3-composer_include_path.patch @@ -0,0 +1,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); |