mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Possible fix for knecke running idsociety on php4.
This commit is contained in:
parent
954571562d
commit
9bcff82453
@ -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();
|
||||
?>
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user