We need to ensure that the app holding the objectstore implementation is loaded - fixes owncloud/objectstore#38
This commit is contained in:
parent
cebb689925
commit
895b638a2c
1 changed files with 5 additions and 0 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue