Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <DeepDiver1975@users.noreply.github.com>2016-11-10 17:22:34 +0300
committerGitHub <noreply@github.com>2016-11-10 17:22:34 +0300
commitdc0ea933aae9c0b4af1aaf0497d0936a4327f70d (patch)
tree3f5936e56b3a960d9202fe1c30f44d8303a9c6b8 /lib
parent547cde9fe725d972ade432fe8e8952e6b35ccb18 (diff)
[stable9.1] We need to ensure that the app holding the objectstore implementation is loaded - fixes owncloud/objectstore#38 (#26506)
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/util.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index afd14f626e2..65d35112806 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -97,6 +97,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';