removed unnecessary instancations and using static methods of html and egw_link class

This commit is contained in:
Ralf Becker 2008-03-25 16:43:57 +00:00
parent 5fd2d8def8
commit cdfcf4cfbe

View File

@ -431,11 +431,7 @@
$GLOBALS['egw']->template->set_var('access','<input type="checkbox" name="cat_access" value="True"' $GLOBALS['egw']->template->set_var('access','<input type="checkbox" name="cat_access" value="True"'
. ($cat['access'] == 'private' ? ' checked' : '') . '>'); . ($cat['access'] == 'private' ? ' checked' : '') . '>');
if (!is_object($GLOBALS['egw']->html)) $GLOBALS['egw']->template->set_var('color',html::inputColor('cat_data[color]',$cat['data']['color'],lang('Click to select a color')));
{
$GLOBALS['egw']->html =& CreateObject('phpgwapi.html');
}
$GLOBALS['egw']->template->set_var('color',$GLOBALS['egw']->html->inputColor('cat_data[color]',$cat['data']['color'],lang('Click to select a color')));
$options = '<option value=""'.(!$cat['data']['icon'] ? ' selected="1"':'').'>'.lang('none')."</options>\n"; $options = '<option value=""'.(!$cat['data']['icon'] ? ' selected="1"':'').'>'.lang('none')."</options>\n";
foreach ($this->icons as $icon) foreach ($this->icons as $icon)