We need to ensure that the app holding the objectstore implementation is loaded - fixes owncloud/objectstore#38

This commit is contained in:
Thomas Müller 2016-10-07 12:41:37 +02:00 committed by Morris Jobke
parent cebb689925
commit 895b638a2c
No known key found for this signature in database
GPG key ID: 9CE5ED29E7FCD38A

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