[Pkg-owncloud-commits] [owncloud] 32/273: Allow adding object stores with the files_external mount config
David Prévot
taffit at moszumanska.debian.org
Fri Jul 4 03:12:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 544963f4148d655bab7959321170f081f72d5e12
Author: Robin Appelman <icewind at owncloud.com>
Date: Tue Jun 24 14:36:57 2014 +0200
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 6f78e56..ec908fb 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{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list