forked from extern/egroupware
removed unnecessary instancations and using static methods of html and egw_link class
This commit is contained in:
parent
d7fe53b79e
commit
e7c2e0c2d7
@ -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));
|
||||
|
@ -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');");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user