diff --git a/setup/inc/hook_config.inc.php b/setup/inc/hook_config.inc.php index fe938cb2aa..443632c85a 100644 --- a/setup/inc/hook_config.inc.php +++ b/setup/inc/hook_config.inc.php @@ -43,8 +43,11 @@ function vfs_storage_mode_options($config) 'custom' => lang('Custom set via %1','filemanager/cli.php mount'), ) as $name => $label) { - $options .= ''.htmlspecialchars($label)."\n"; + if ($name != 'custom' || $name === $config['vfs_storage_mode']) // dont show custom, if not custom + { + $options .= ''.htmlspecialchars($label)."\n"; + } } //echo "".htmlspecialchars($options)."\n"; return $options; @@ -233,7 +236,7 @@ function sql_passwdhashes($config) /** * Make mail-login-types from emailadmin available to config template - * + * * @param array $config * @return string */ @@ -244,7 +247,7 @@ function mail_login_type($config) /** * Make auth-types from setup_cmd_config available - * + * * @param array $config * @return string */ @@ -263,7 +266,7 @@ function auth_type_groupdav($config) /** * Returns options string - * + * * @param array $options value => label pairs * @param string $selected value of selected optino * @return string @@ -272,7 +275,7 @@ function _options_from(array $options,$selected) { foreach($options as $value => $label) { - $out .= '' . $label . '' . "\n"; } return $out;
".htmlspecialchars($options)."