do not hide unavailable options, just disable them so people can see what is actually possible but just not available due to webserver-usage or other settings

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-09-12 11:23:29 +02:00
parent b8c2047379
commit 3b157a8c66
19 changed files with 37 additions and 25 deletions

View File

@@ -17,12 +17,12 @@
*
*/
function getFormFieldOutputDate($fieldname, $fielddata)
function getFormFieldOutputDate($fieldname, $fielddata, $do_show = true)
{
if(isset($fielddata['date_timestamp']) && $fielddata['date_timestamp'] === true)
{
$fielddata['value'] = date('Y-m-d', $fielddata['value']);
}
return getFormFieldOutputString($fieldname, $fielddata);
return getFormFieldOutputString($fieldname, $fielddata, $do_show);
}