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

@ -3357,13 +3357,15 @@
$p->set_unknowns('keep'); $p->set_unknowns('keep');
$tpl = 'day_cal.tpl'; $tpl = 'day_cal.tpl';
if(intval($GLOBALS['phpgw_info']['user']['preferences']['calendar']['mainscreen_showevents'])==2) if(intval($GLOBALS['phpgw_info']['user']['preferences']['calendar']['mainscreen_showevents'])==2 &&
$GLOBALS[phpgw_info][flags][currentapp] == 'home')
{ {
$tpl = 'day_list.tpl'; $tpl = 'day_list.tpl';
} }
$templates = Array( $templates = Array(
'day_cal' => $tpl 'day_cal' => $tpl
); );
$p->set_file($templates); $p->set_file($templates);
$p->set_block('day_cal','day','day'); $p->set_block('day_cal','day','day');
$p->set_block('day_cal','day_row','day_row'); $p->set_block('day_cal','day_row','day_row');