day view inside calendar was broken, because of changes for the new home view

This commit is contained in:
Lars Kneschke 2003-12-01 17:42:23 +00:00
parent c77cc462e6
commit 2979b60394

View File

@ -3356,14 +3356,16 @@
$p = CreateObject('phpgwapi.Template',$this->template_dir);
$p->set_unknowns('keep');
$tpl = 'day_cal.tpl';
if(intval($GLOBALS['phpgw_info']['user']['preferences']['calendar']['mainscreen_showevents'])==2)
{
$tpl = 'day_list.tpl';
}
$templates = Array(
'day_cal' => $tpl
);
$tpl = 'day_cal.tpl';
if(intval($GLOBALS['phpgw_info']['user']['preferences']['calendar']['mainscreen_showevents'])==2 &&
$GLOBALS[phpgw_info][flags][currentapp] == 'home')
{
$tpl = 'day_list.tpl';
}
$templates = Array(
'day_cal' => $tpl
);
$p->set_file($templates);
$p->set_block('day_cal','day','day');
$p->set_block('day_cal','day_row','day_row');