diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-12-03 14:14:31 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-12-04 16:47:30 +0100 |
commit | a369d7812463c2afddf1640c42643de6312ab9ba (patch) | |
tree | 956d3431dd3f112233a90577e4bd13d7bfab9899 /apps/files_external/lib/config.php | |
parent | f4701d7721453b8356a5be401bb5063d22f851c6 (diff) | |
download | nextcloud-server-a369d7812463c2afddf1640c42643de6312ab9ba.tar.gz nextcloud-server-a369d7812463c2afddf1640c42643de6312ab9ba.zip |
Use the mount config api for files_external
Diffstat (limited to 'apps/files_external/lib/config.php')
-rw-r--r-- | apps/files_external/lib/config.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 9400bbdedc0..44cf90b4f9e 100644 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -103,22 +103,6 @@ class OC_Mount_Config { * @param array $data */ public static function initMountPointsHook($data) { - $mountPoints = self::getAbsoluteMountPoints($data['user']); - $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 (isset($options['personal']) && $options['personal']) { - $mount = new \OCA\Files_External\PersonalMount($options['class'], $mountPoint, $options['options'], $loader); - } else{ - $mount = new \OC\Files\Mount\Mount($options['class'], $mountPoint, $options['options'], $loader); - } - $manager->addMount($mount); - } - if ($data['user']) { $user = \OC::$server->getUserManager()->get($data['user']); if (!$user) { |