mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +01:00
Fix home showed wrong day for single days
This commit is contained in:
parent
794d6aee5c
commit
174387b958
@ -756,11 +756,10 @@ class calendar_uiviews extends calendar_ui
|
|||||||
}
|
}
|
||||||
if ($this->debug > 0) $this->bo->debug_message('uiviews::week(days=%1) date=%2',True,$days,$this->date);
|
if ($this->debug > 0) $this->bo->debug_message('uiviews::week(days=%1) date=%2',True,$days,$this->date);
|
||||||
|
|
||||||
if ($days == 4) // next 4 days view
|
if ($days <= 4) // next 4 days view
|
||||||
{
|
{
|
||||||
$wd_start = $this->first = $this->bo->date2ts($this->date);
|
$wd_start = $this->first = $this->bo->date2ts($this->date);
|
||||||
$this->last = strtotime("+$days days",$this->first) - 1;
|
$this->last = strtotime("+$days days",$this->first) - 1;
|
||||||
$GLOBALS['egw_info']['flags']['app_header'] .= ': '.lang('Four days view').' '.$this->bo->long_date($this->first,$this->last);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user