From 544963f4148d655bab7959321170f081f72d5e12 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 24 Jun 2014 14:36:57 +0200 Subject: [PATCH] Allow adding object stores with the files_external mount config --- apps/files_external/lib/config.php | 4 ++++ 1 file changed, 4 insertions(+) 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{ -- 2.39.5