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$ */
if (floor(phpversion()) == 4) {
global $date, $year, $month, $day, $thisyear, $thismonth, $thisday, $filter, $keywords;
global $matrixtype, $participants, $owner, $phpgw, $grants, $rights, $SCRIPT_FILENAME, $remainder;
}
if (floor(phpversion()) == 4)
{
global $date, $year, $month, $day, $thisyear, $thismonth, $thisday, $filter, $keywords;
global $matrixtype, $participants, $owner, $phpgw, $grants, $rights, $SCRIPT_FILENAME, $remainder, $tpl;
}
$cols = 8;
if($phpgw->calendar->check_perms(PHPGW_ACL_PRIVATE) == True)
@ -25,6 +26,9 @@
$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();
?>

View File

@ -23,6 +23,8 @@
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(
'head_tpl' => 'head.tpl',
'form_button_dropdown' => 'form_button_dropdown.tpl',