diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-03-13 12:49:11 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-03-13 12:49:11 +0100 |
commit | 34c8b1ac7732b4502beebea0dfeeaa8bac225550 (patch) | |
tree | 6fbcb5c17781157bf14afe141b9738814db393c5 /apps/files_external/controller/userstoragescontroller.php | |
parent | 680ec056dc8c4fb84b8300967bcc12db2a57f225 (diff) | |
download | nextcloud-server-34c8b1ac7732b4502beebea0dfeeaa8bac225550.tar.gz nextcloud-server-34c8b1ac7732b4502beebea0dfeeaa8bac225550.zip |
Mount options for ext storage are now passed around
The mount options are now passed to the UI and stored in a hidden field.
The ext storage controllers and services also know how to load/save them
from the legacy config.
Diffstat (limited to 'apps/files_external/controller/userstoragescontroller.php')
-rw-r--r-- | apps/files_external/controller/userstoragescontroller.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/files_external/controller/userstoragescontroller.php b/apps/files_external/controller/userstoragescontroller.php index b77cbca59fd..64202b5e542 100644 --- a/apps/files_external/controller/userstoragescontroller.php +++ b/apps/files_external/controller/userstoragescontroller.php @@ -86,6 +86,7 @@ class UserStoragesController extends StoragesController { * @param string $mountPoint storage mount point * @param string $backendClass backend class name * @param array $backendOptions backend-specific options + * @param array $mountOptions backend-specific mount options * * @return DataResponse * @@ -94,12 +95,14 @@ class UserStoragesController extends StoragesController { public function create( $mountPoint, $backendClass, - $backendOptions + $backendOptions, + $mountOptions ) { $newStorage = new StorageConfig(); $newStorage->setMountPoint($mountPoint); $newStorage->setBackendClass($backendClass); $newStorage->setBackendOptions($backendOptions); + $newStorage->setMountOptions($mountOptions); $response = $this->validate($newStorage); if (!empty($response)) { @@ -122,6 +125,7 @@ class UserStoragesController extends StoragesController { * @param string $mountPoint storage mount point * @param string $backendClass backend class name * @param array $backendOptions backend-specific options + * @param array $mountOptions backend-specific mount options * * @return DataResponse */ @@ -129,12 +133,14 @@ class UserStoragesController extends StoragesController { $id, $mountPoint, $backendClass, - $backendOptions + $backendOptions, + $mountOptions ) { $storage = new StorageConfig($id); $storage->setMountPoint($mountPoint); $storage->setBackendClass($backendClass); $storage->setBackendOptions($backendOptions); + $storage->setMountOptions($mountOptions); $response = $this->validate($storage); if (!empty($response)) { |