From 1b0912de511c9bdb69386bfab87f60b167255b2c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 27 Apr 2003 07:27:05 +0000 Subject: [PATCH] fix for hook_home: app-template-dir has to be set explicitly --- calendar/inc/class.uicalendar.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 45c6115e3b..44b8072dc6 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -682,7 +682,7 @@ 'print' => $print ); - $p = $GLOBALS['phpgw']->template; + $p = CreateObject('phpgwapi.Template',$this->template_dir); $p->set_unknowns('remove'); $p->set_file( Array( @@ -897,7 +897,7 @@ 'printer_friendly'=> $printer ); - $p = $GLOBALS['phpgw']->template; + $p = CreateObject('phpgwapi.Template',$this->template_dir); $p->set_file( Array( 'year_t' => 'year.tpl' @@ -3644,7 +3644,7 @@ ) ); - $p = $GLOBALS['phpgw']->template; + $p = CreateObject('phpgwapi.Template',$this->template_dir); $p->set_unknowns('keep'); $templates = Array(