diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-01-18 12:06:10 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-02-04 15:31:05 +0100 |
commit | 71992f9d29c61c867b79d51b74e24113a8a72750 (patch) | |
tree | 56b12468174e7befd730077abad2a8b7906f719e | |
parent | e3eda917ef947af04268a1e11975524de0c77c94 (diff) | |
download | nextcloud-server-71992f9d29c61c867b79d51b74e24113a8a72750.tar.gz nextcloud-server-71992f9d29c61c867b79d51b74e24113a8a72750.zip |
update import logic for the new export logic
-rw-r--r-- | apps/files_external/command/import.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/command/import.php b/apps/files_external/command/import.php index fe27051359c..28032c207b5 100644 --- a/apps/files_external/command/import.php +++ b/apps/files_external/command/import.php @@ -194,8 +194,8 @@ class Import extends Base { $mount = new StorageConfig($data['mount_id']); $mount->setMountPoint($data['mount_point']); $mount->setBackend($this->getBackendByClass($data['storage'])); - $authBackends = $this->backendService->getAuthMechanismsByScheme([$data['authentication_type']]); - $mount->setAuthMechanism(current($authBackends)); + $authBackend = $this->backendService->getAuthMechanism($data['authentication_type']); + $mount->setAuthMechanism($authBackend); $mount->setBackendOptions($data['configuration']); $mount->setMountOptions($data['options']); $mount->setApplicableUsers(isset($data['applicable_users']) ? $data['applicable_users'] : []); |