mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
dont show vfs_storage_mode "custom", if not custom
This commit is contained in:
parent
00dd0b090b
commit
ea989a2af8
@ -43,8 +43,11 @@ function vfs_storage_mode_options($config)
|
||||
'custom' => lang('Custom set via %1','filemanager/cli.php mount'),
|
||||
) as $name => $label)
|
||||
{
|
||||
$options .= '<option value="'.$name.($name === $config['vfs_storage_mode'] ? '" selected="selected' : '').
|
||||
'">'.htmlspecialchars($label)."</options>\n";
|
||||
if ($name != 'custom' || $name === $config['vfs_storage_mode']) // dont show custom, if not custom
|
||||
{
|
||||
$options .= '<option value="'.$name.($name === $config['vfs_storage_mode'] ? '" selected="selected' : '').
|
||||
'">'.htmlspecialchars($label)."</options>\n";
|
||||
}
|
||||
}
|
||||
//echo "<pre>".htmlspecialchars($options)."</pre>\n";
|
||||
return $options;
|
||||
|
Loading…
Reference in New Issue
Block a user