summaryrefslogtreecommitdiffstats
path: root/owncloud-8.0.1-autoloader_paths.patch
diff options
context:
space:
mode:
Diffstat (limited to 'owncloud-8.0.1-autoloader_paths.patch')
-rw-r--r--owncloud-8.0.1-autoloader_paths.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/owncloud-8.0.1-autoloader_paths.patch b/owncloud-8.0.1-autoloader_paths.patch
new file mode 100644
index 0000000..bb471f8
--- /dev/null
+++ b/owncloud-8.0.1-autoloader_paths.patch
@@ -0,0 +1,14 @@
+--- owncloud/lib/base.php 2014-07-29 00:27:51.154263240 -0700
++++ owncloud/lib/base.php.new 2014-07-29 00:30:26.998084605 -0700
+@@ -475,7 +475,10 @@
+ // setup 3rdparty autoloader
+ $vendorAutoLoad = OC::$THIRDPARTYROOT . '/3rdparty/autoload.php';
+ if (file_exists($vendorAutoLoad)) {
+- require_once $vendorAutoLoad;
++ $loader = require_once $vendorAutoLoad;
++ $loader->add('Pimple', '/usr/share/php/Pimple');
++ $loader->add('Sabre', '/usr/share/php');
++ $loader->add('Sabre\VObject', '/usr/share/pear');
+ } else {
+ OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);
+ // we can't use the template error page here, because this needs the