Merge pull request #2113 from nextcloud/downstream-26299

We need to ensure that the app holding the objectstore implementation…
This commit is contained in:
Roeland Jago Douma 2016-11-14 16:44:16 +01:00 committed by GitHub
commit 1e3d806416
1 changed files with 5 additions and 0 deletions

View File

@ -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';