mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
Allow text for global option (all globals)
This commit is contained in:
parent
92cd8e15bd
commit
e74f753978
@ -276,8 +276,10 @@ class etemplate_widget_menupopup extends etemplate_widget
|
||||
{
|
||||
$categories = new categories($type5,$type3);
|
||||
}
|
||||
// Allow text for global
|
||||
$type = ($type && strlen($type) > 1 ? $type : !$type);
|
||||
// we cast $type4 (parent) to int, to get default of 0 if omitted
|
||||
foreach((array)$categories->return_sorted_array(0,False,'','','',!$type,(int)$type4,true) as $cat)
|
||||
foreach((array)$categories->return_sorted_array(0,False,'','','',$type,(int)$type4,true) as $cat)
|
||||
{
|
||||
$s = str_repeat(' ',$cat['level']) . stripslashes($cat['name']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user