mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
removed unnecessary instancations and using static methods of html and egw_link class
This commit is contained in:
parent
5fd2d8def8
commit
cdfcf4cfbe
@ -431,11 +431,7 @@
|
||||
$GLOBALS['egw']->template->set_var('access','<input type="checkbox" name="cat_access" value="True"'
|
||||
. ($cat['access'] == 'private' ? ' checked' : '') . '>');
|
||||
|
||||
if (!is_object($GLOBALS['egw']->html))
|
||||
{
|
||||
$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')));
|
||||
$GLOBALS['egw']->template->set_var('color',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";
|
||||
foreach ($this->icons as $icon)
|
||||
|
Loading…
Reference in New Issue
Block a user