diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-10-07 12:41:37 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-11-14 15:00:45 +0100 |
commit | 895b638a2cca82f24519f8e2351be992a911d757 (patch) | |
tree | 2f5c2a126646bae87e7b49dcb5e93ded1ed5580c /lib/private/legacy | |
parent | cebb68992509215163f6776b76e48411a31a287e (diff) | |
download | nextcloud-server-895b638a2cca82f24519f8e2351be992a911d757.tar.gz nextcloud-server-895b638a2cca82f24519f8e2351be992a911d757.zip |
We need to ensure that the app holding the objectstore implementation is loaded - fixes owncloud/objectstore#38
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/util.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php index 5cd92eaa415..ecc8f053704 100644 --- a/lib/private/legacy/util.php +++ b/lib/private/legacy/util.php @@ -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'; |