summaryrefslogtreecommitdiffstats
path: root/apps/files_external/command
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/command')
-rw-r--r--apps/files_external/command/config.php14
-rw-r--r--apps/files_external/command/listcommand.php2
-rw-r--r--apps/files_external/command/option.php2
3 files changed, 13 insertions, 5 deletions
diff --git a/apps/files_external/command/config.php b/apps/files_external/command/config.php
index 6a57b2dd961..1403c24b345 100644
--- a/apps/files_external/command/config.php
+++ b/apps/files_external/command/config.php
@@ -2,7 +2,7 @@
/**
* @author Robin Appelman <icewind@owncloud.com>
*
- * @copyright Copyright (c) 2015, ownCloud, Inc.
+ * @copyright Copyright (c) 2016, ownCloud, Inc.
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
@@ -88,7 +88,11 @@ class Config extends Base {
* @param OutputInterface $output
*/
protected function getOption(StorageConfig $mount, $key, OutputInterface $output) {
- $value = $mount->getBackendOption($key);
+ if ($key === 'mountpoint' || $key === 'mount_point') {
+ $value = $mount->getMountPoint();
+ } else {
+ $value = $mount->getBackendOption($key);
+ }
if (!is_string($value)) { // show bools and objects correctly
$value = json_encode($value);
}
@@ -106,7 +110,11 @@ class Config extends Base {
if (!is_null($decoded)) {
$value = $decoded;
}
- $mount->setBackendOption($key, $value);
+ if ($key === 'mountpoint' || $key === 'mount_point') {
+ $mount->setMountPoint($value);
+ } else {
+ $mount->setBackendOption($key, $value);
+ }
$this->globalService->updateStorage($mount);
}
}
diff --git a/apps/files_external/command/listcommand.php b/apps/files_external/command/listcommand.php
index 1f335316c3b..f55fb464c83 100644
--- a/apps/files_external/command/listcommand.php
+++ b/apps/files_external/command/listcommand.php
@@ -2,7 +2,7 @@
/**
* @author Robin Appelman <icewind@owncloud.com>
*
- * @copyright Copyright (c) 2015, ownCloud, Inc.
+ * @copyright Copyright (c) 2016, ownCloud, Inc.
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
diff --git a/apps/files_external/command/option.php b/apps/files_external/command/option.php
index 64dafb8f6dc..292005134cb 100644
--- a/apps/files_external/command/option.php
+++ b/apps/files_external/command/option.php
@@ -2,7 +2,7 @@
/**
* @author Robin Appelman <icewind@owncloud.com>
*
- * @copyright Copyright (c) 2015, ownCloud, Inc.
+ * @copyright Copyright (c) 2016, ownCloud, Inc.
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify