diff options
author | Ardinis <Ardinis@users.noreply.github.com> | 2017-04-14 15:42:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-14 15:42:45 +0200 |
commit | 3db84ed90ad1f9f97b233f4bf36b3750a53376fd (patch) | |
tree | 789e200667e075816a2e80b399d88bbc92033f1c /apps/files_external/lib/Command/Config.php | |
parent | f40b9fa9bd03b9c9590976eefa21aba7085f32f2 (diff) | |
download | nextcloud-server-3db84ed90ad1f9f97b233f4bf36b3750a53376fd.tar.gz nextcloud-server-3db84ed90ad1f9f97b233f4bf36b3750a53376fd.zip |
Remove json handling for files_external:config
#4347
Diffstat (limited to 'apps/files_external/lib/Command/Config.php')
-rw-r--r-- | apps/files_external/lib/Command/Config.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/files_external/lib/Command/Config.php b/apps/files_external/lib/Command/Config.php index 362f0a0f2b5..b928f66d592 100644 --- a/apps/files_external/lib/Command/Config.php +++ b/apps/files_external/lib/Command/Config.php @@ -91,9 +91,6 @@ class Config extends Base { } else { $value = $mount->getBackendOption($key); } - if (!is_string($value)) { // show bools and objects correctly - $value = json_encode($value); - } $output->writeln($value); } @@ -104,10 +101,6 @@ class Config extends Base { * @param OutputInterface $output */ protected function setOption(StorageConfig $mount, $key, $value, OutputInterface $output) { - $decoded = json_decode($value, true); - if (!is_null($decoded)) { - $value = $decoded; - } if ($key === 'mountpoint' || $key === 'mount_point') { $mount->setMountPoint($value); } else { |