"make cat selection identical to etemplate stock one"

This commit is contained in:
Ralf Becker 2009-08-10 19:19:10 +00:00
parent c9e2127325
commit 97514cd296

View File

@ -79,18 +79,10 @@ class bo_acl
#_debug_array($cat)."hier<br>";
if($this->is_permitted($cat['id'],$perm_type))
{
for ($j=0,$s=''; $j < $cat['level']; $j++)
$s = str_repeat('&nbsp;',$cat['level']) . stripslashes($cat['name']);
if ($cat['app_name'] == 'phpgw' || $cat['owner'] == '-1')
{
$s .= '&nbsp;';
}
$s .= $GLOBALS['egw']->strip_html($cat['name']);
if ($cat['app_name'] == 'phpgw')
{
$s .= '&nbsp;&lt;' . lang('Global') . '&gt;';
}
if ($cat['owner'] == '-1')
{
$s .= '&nbsp;&lt;' . lang('Global') . '&nbsp;' . lang($cat['app_name']) . '&gt;';
$s .= ' &#9830;';
}
$perm_cats[$cat['id']] = $s;
}