dont show vfs_storage_mode "custom", if not custom

This commit is contained in:
Ralf Becker 2011-03-07 14:15:44 +00:00
parent 00dd0b090b
commit ea989a2af8

View File

@ -42,10 +42,13 @@ function vfs_storage_mode_options($config)
'db' => lang('Database').' (problems with files > 1MB)',
'custom' => lang('Custom set via %1','filemanager/cli.php mount'),
) as $name => $label)
{
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;
}