Possible fix for knecke running idsociety on php4.

This commit is contained in:
skeeter 2001-07-01 16:08:13 +00:00
parent 954571562d
commit 9bcff82453
2 changed files with 11 additions and 5 deletions

View File

@ -14,10 +14,11 @@
/* $Id$ */ /* $Id$ */
if (floor(phpversion()) == 4) { if (floor(phpversion()) == 4)
global $date, $year, $month, $day, $thisyear, $thismonth, $thisday, $filter, $keywords; {
global $matrixtype, $participants, $owner, $phpgw, $grants, $rights, $SCRIPT_FILENAME, $remainder; global $date, $year, $month, $day, $thisyear, $thismonth, $thisday, $filter, $keywords;
} global $matrixtype, $participants, $owner, $phpgw, $grants, $rights, $SCRIPT_FILENAME, $remainder, $tpl;
}
$cols = 8; $cols = 8;
if($phpgw->calendar->check_perms(PHPGW_ACL_PRIVATE) == True) if($phpgw->calendar->check_perms(PHPGW_ACL_PRIVATE) == True)
@ -25,6 +26,9 @@
$cols++; $cols++;
} }
include(PHPGW_APP_TPL.'/header.inc.php'); $tpl = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('calendar'));
$tpl->set_unknowns('remove');
include($phpgw->common->get_tpl_dir('calendar').'/header.inc.php');
flush(); flush();
?> ?>

View File

@ -23,6 +23,8 @@
return '<a href="'.$link.'"><img src="'.PHPGW_IMAGES.'/'.$image.'" alt="'.$alt.'" border="0"></a>'; return '<a href="'.$link.'"><img src="'.PHPGW_IMAGES.'/'.$image.'" alt="'.$alt.'" border="0"></a>';
} }
$tpl = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('calendar'));
$tpl->set_unknowns('remove');
$templates = Array( $templates = Array(
'head_tpl' => 'head.tpl', 'head_tpl' => 'head.tpl',
'form_button_dropdown' => 'form_button_dropdown.tpl', 'form_button_dropdown' => 'form_button_dropdown.tpl',