forked from extern/egroupware
fixed 2 errors with the notifications mentioned on the lists:
- the old boicalendar class was tried to call to create ical attachments for meating requests - the generated link in "extended" notifications was sometimes wrong
This commit is contained in:
parent
2e0b22691a
commit
448a819cb6
@ -578,11 +578,7 @@ class bocalupdate extends bocal
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'ical':
|
case 'ical':
|
||||||
$ics = ExecMethod('calendar.boicalendar.export',array(
|
$ics = ExecMethod2('calendar.boical.exportVCal',$event['id'],'2.0',$method);
|
||||||
'l_event_id' => array($event),
|
|
||||||
'method' => $method,
|
|
||||||
'chunk_split' => False
|
|
||||||
));
|
|
||||||
if ($method == "request")
|
if ($method == "request")
|
||||||
{
|
{
|
||||||
$send->AddStringAttachment($ics, "cal.ics", "8bit", "text/calendar; method=$method");
|
$send->AddStringAttachment($ics, "cal.ics", "8bit", "text/calendar; method=$method");
|
||||||
@ -800,14 +796,15 @@ class bocalupdate extends bocal
|
|||||||
$details['participants'] = $details['participants'] ? implode("\n",$details['participants']) : '';
|
$details['participants'] = $details['participants'] ? implode("\n",$details['participants']) : '';
|
||||||
|
|
||||||
$event_arr['link']['field'] = lang('URL');
|
$event_arr['link']['field'] = lang('URL');
|
||||||
$event_arr['link']['data'] = $details['link'] = $GLOBALS['egw_info']['server']['webserver_url'].'/index.php?menuaction=calendar.uiforms.view&cal_id='.$event['id'].'&no_popup=1';
|
$link = $GLOBALS['egw_info']['server']['webserver_url'].'/index.php?menuaction=calendar.uiforms.view&cal_id='.$event['id'].'&no_popup=1';
|
||||||
// if url is only a path, try guessing the rest ;-)
|
// if url is only a path, try guessing the rest ;-)
|
||||||
if ($GLOBALS['egw_info']['server']['webserver_url'][0] == '/')
|
if ($link{0} == '/')
|
||||||
{
|
{
|
||||||
$details['link'] = ($GLOBALS['egw_info']['server']['enforce_ssl'] || $_SERVER['HTTPS'] ? 'https://' : 'http://').
|
$link = ($GLOBALS['egw_info']['server']['enforce_ssl'] || $_SERVER['HTTPS'] ? 'https://' : 'http://').
|
||||||
($GLOBALS['egw_info']['server']['hostname'] ? $GLOBALS['egw_info']['server']['hostname'] : 'localhost').
|
($GLOBALS['egw_info']['server']['hostname'] ? $GLOBALS['egw_info']['server']['hostname'] : $_SERVER['HTTP_HOST']).
|
||||||
$details['link'];
|
$details['link'];
|
||||||
}
|
}
|
||||||
|
$event_arr['link']['data'] = $details['link'] = $link;
|
||||||
$dis = array();
|
$dis = array();
|
||||||
foreach($disinvited as $uid)
|
foreach($disinvited as $uid)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user