mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Possible fix for knecke running idsociety on php4.
This commit is contained in:
parent
954571562d
commit
9bcff82453
@ -14,9 +14,10 @@
|
||||
|
||||
/* $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 $matrixtype, $participants, $owner, $phpgw, $grants, $rights, $SCRIPT_FILENAME, $remainder, $tpl;
|
||||
}
|
||||
|
||||
$cols = 8;
|
||||
@ -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