From 895b638a2cca82f24519f8e2351be992a911d757 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20M=C3=BCller?= Date: Fri, 7 Oct 2016 12:41:37 +0200 Subject: [PATCH] We need to ensure that the app holding the objectstore implementation is loaded - fixes owncloud/objectstore#38 --- lib/private/legacy/util.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php index 5cd92eaa415..ecc8f053704 100644 --- a/lib/private/legacy/util.php +++ b/lib/private/legacy/util.php @@ -98,6 +98,11 @@ class OC_Util { } // instantiate object store implementation + $name = $config['class']; + if (strpos($name, 'OCA\\') === 0 && substr_count($name, '\\') >= 2) { + $segments = explode('\\', $name); + OC_App::loadApp(strtolower($segments[1])); + } $config['arguments']['objectstore'] = new $config['class']($config['arguments']); // mount with plain / root object store implementation $config['class'] = '\OC\Files\ObjectStore\ObjectStoreStorage'; -- 2.39.5