Merge pull request #2113 from nextcloud/downstream-26299
We need to ensure that the app holding the objectstore implementation…
This commit is contained in:
commit
1e3d806416
|
@ -98,6 +98,11 @@ class OC_Util {
|
||||||
}
|
}
|
||||||
|
|
||||||
// instantiate object store implementation
|
// 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']);
|
$config['arguments']['objectstore'] = new $config['class']($config['arguments']);
|
||||||
// mount with plain / root object store implementation
|
// mount with plain / root object store implementation
|
||||||
$config['class'] = '\OC\Files\ObjectStore\ObjectStoreStorage';
|
$config['class'] = '\OC\Files\ObjectStore\ObjectStoreStorage';
|
||||||
|
|
Loading…
Reference in New Issue