diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index caf1da147d..26209082fb 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -231,16 +231,11 @@ @param $selected ? @result $s array - populated with categories */ - function formated_list($format,$type,$selected = '',$public = False) + function formated_list($format,$type,$selected = '',$public = False,$site_link = 'site') { global $phpgw; $filter = $this->filter($type); - if ($public) - { - $public_cats = " OR cat_appname='phpgw' "; - } - if ($format == 'select') { $cats = $this->return_array($type,$start,False,$query,$sort,$order,$public); @@ -253,7 +248,7 @@ $s .= ' selected'; } $s .= '>' . $phpgw->strip_html($cats[$i]['name']); - if ($cats[$i]['app_name'] == 'phpgw') + if ($cats[$i]['app_name'] == 'phpgw') { $s .= '<' . lang('Global') . '>'; } @@ -261,6 +256,28 @@ } return $s; } + + if ($format == 'list') + { + $space = ' '; + + $cats = $this->return_array($type,$start,False,$query,$sort,$order,$public); + + $s = '