diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-06-24 14:36:57 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-24 14:36:57 +0200 |
commit | 544963f4148d655bab7959321170f081f72d5e12 (patch) | |
tree | e7f92aedc2e17fa9c9a14a8ecfb098149d1024e3 /apps/files_external/lib | |
parent | 159b603d1380410cb37e2a5ac1604f3ae90286c2 (diff) | |
download | nextcloud-server-544963f4148d655bab7959321170f081f72d5e12.tar.gz nextcloud-server-544963f4148d655bab7959321170f081f72d5e12.zip |
Allow adding object stores with the files_external mount config
Diffstat (limited to 'apps/files_external/lib')
-rwxr-xr-x | apps/files_external/lib/config.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 6f78e569b64..ec908fb068d 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -107,6 +107,10 @@ class OC_Mount_Config { $loader = \OC\Files\Filesystem::getLoader(); $manager = \OC\Files\Filesystem::getMountManager(); foreach ($mountPoints as $mountPoint => $options) { + if (isset($options['options']['objectstore'])) { + $objectClass = $options['options']['objectstore']['class']; + $options['options']['objectstore'] = new $objectClass($options['options']['objectstore']); + } if ($options['personal']){ $mount = new \OCA\Files_External\PersonalMount($options['class'], $mountPoint, $options['options'], $loader); } else{ |