From aeae312bc9a541264a25bf5b76b42f94b7c7e07a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 5 Feb 2005 10:23:19 +0000 Subject: [PATCH] change to reflect change in name of etemplate var --- infolog/inc/hook_home.inc.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/infolog/inc/hook_home.inc.php b/infolog/inc/hook_home.inc.php index 9185e1b9b1..357aece842 100644 --- a/infolog/inc/hook_home.inc.php +++ b/infolog/inc/hook_home.inc.php @@ -22,20 +22,20 @@ $GLOBALS['portal_order'][] = $app_id; $infolog = CreateObject('infolog.uiinfolog'); - if($showevents==1) + switch($showevents) { - $html = $infolog->index(array('nm' => array('filter' => 'own-open-today')),'','',0,False,True); - } - elseif($showevents==2) - { - #$html = $infolog->index(array('nm' => array('filter' => 'own-upcoming')),'','',0,False,True); - $html = ExecMethod('calendar.uicalendar.get_todos', array('', false)); + case 1: + $html = $infolog->index(array('nm' => array('filter' => 'own-open-today')),'','',0,False,True); + break; + case 2: + $html = ExecMethod('calendar.uicalendar.get_todos', array('', false)); + break; } $title = lang('InfoLog').' - '.lang($infolog->filters['own-open-today']); - $stable = $infolog->tmpl->stable; + $xslt = $infolog->tmpl->xslt; unset($infolog); - if($stable) // .14/6 + if(!$xslt) // .14/6 { $portalbox = CreateObject('phpgwapi.listbox',array( 'title' => $title,