Allow text for global option (all globals)

This commit is contained in:
Nathan Gray 2012-04-24 23:13:25 +00:00
parent 92cd8e15bd
commit e74f753978

View File

@ -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']);