mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Small code cleanups.
This commit is contained in:
parent
c9c6cd8340
commit
a8f3f17a36
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
if($this->debug)
|
if($this->debug)
|
||||||
{
|
{
|
||||||
echo "Locale = ".$this->locales[0]."<br>\n";
|
echo '<-- Locale = '.$this->locales[0].' -->'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->total = $this->so->holiday_total($this->locales[0],$this->query);
|
$this->total = $this->so->holiday_total($this->locales[0],$this->query);
|
||||||
@ -173,7 +173,8 @@
|
|||||||
|
|
||||||
function prepare_read_holidays($year=0,$owner=0)
|
function prepare_read_holidays($year=0,$owner=0)
|
||||||
{
|
{
|
||||||
$this->year = ($year?$year:$GLOBALS['phpgw']->common->show_date(time(),'Y'));
|
$datetime = CreateObject('phpgwapi.datetime');
|
||||||
|
$this->year = ($year?$year:$GLOBALS['phpgw']->common->show_date(time() - $datetime->tz_offset,'Y'));
|
||||||
$this->owner = ($owner?$owner:$GLOBALS['phpgw_info']['user']['account_id']);
|
$this->owner = ($owner?$owner:$GLOBALS['phpgw_info']['user']['account_id']);
|
||||||
|
|
||||||
if(@$GLOBALS['phpgw_info']['user']['preferences']['common']['country'])
|
if(@$GLOBALS['phpgw_info']['user']['preferences']['common']['country'])
|
||||||
|
Loading…
Reference in New Issue
Block a user