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

This commit is contained in:
Ralf Becker 2008-03-25 16:13:55 +00:00
parent d7fe53b79e
commit e7c2e0c2d7
2 changed files with 0 additions and 12 deletions

View File

@ -112,10 +112,6 @@ class botimesheet extends so_sql
$this->customfields = $this->config_data['customfields'];
}
if (!is_object($GLOBALS['egw']->datetime))
{
$GLOBALS['egw']->datetime =& CreateObject('phpgwapi.datetime');
}
$this->tz_offset_s = $GLOBALS['egw']->datetime->tz_offset;
$this->now = time() + $this->tz_offset_s; // time() is server-time and we need a user-time
$this->today = mktime(0,0,0,date('m',$this->now),date('d',$this->now),date('Y',$this->now));

View File

@ -428,10 +428,6 @@ class uitimesheet extends botimesheet
// category filter: cat_id or ''=All cats or 0=No cat
if ($query['cat_id'])
{
if (!is_object($GLOBALS['egw']->categories))
{
$GLOBALS['egw']->categories =& CreateObject('phpgwapi.categories');
}
$cats = $GLOBALS['egw']->categories->return_all_children((int)$query['cat_id']);
$query['col_filter']['cat_id'] = count($cats) > 1 ? $cats : $query['cat_id'];
}
@ -491,10 +487,6 @@ class uitimesheet extends botimesheet
}
if ($query['filter'] == 'custom') // show the custome dates
{
if (!is_object($GLOBALS['egw']->js))
{
$GLOBALS['egw']->js =& CreateObject('phpgwapi.javascript');
}
$GLOBALS['egw']->js->set_onload("set_style_by_class('*','custom_hide','visibility','visible');");
}
}