forked from extern/egroupware
changed case to uppercase of the method part of the mime-type of calendar invitations, as lightning ignores lowercase methods
This commit is contained in:
parent
e003a6b5c7
commit
ba1a1c3e69
@ -439,52 +439,52 @@ class bocalupdate extends bocal
|
|||||||
$action = lang('Canceled');
|
$action = lang('Canceled');
|
||||||
$msg = 'Canceled';
|
$msg = 'Canceled';
|
||||||
$msgtype = '"calendar";';
|
$msgtype = '"calendar";';
|
||||||
$method = 'cancel';
|
$method = 'CANCEL';
|
||||||
break;
|
break;
|
||||||
case MSG_MODIFIED:
|
case MSG_MODIFIED:
|
||||||
$action = lang('Modified');
|
$action = lang('Modified');
|
||||||
$msg = 'Modified';
|
$msg = 'Modified';
|
||||||
$msgtype = '"calendar"; Version="'.$version.'"; Id="'.$new_event['id'].'"';
|
$msgtype = '"calendar"; Version="'.$version.'"; Id="'.$new_event['id'].'"';
|
||||||
$method = 'request';
|
$method = 'REQUEST';
|
||||||
break;
|
break;
|
||||||
case MSG_DISINVITE:
|
case MSG_DISINVITE:
|
||||||
$action = lang('Disinvited');
|
$action = lang('Disinvited');
|
||||||
$msg = 'Disinvited';
|
$msg = 'Disinvited';
|
||||||
$msgtype = '"calendar";';
|
$msgtype = '"calendar";';
|
||||||
$method = 'cancel';
|
$method = 'CANCEL';
|
||||||
break;
|
break;
|
||||||
case MSG_ADDED:
|
case MSG_ADDED:
|
||||||
$action = lang('Added');
|
$action = lang('Added');
|
||||||
$msg = 'Added';
|
$msg = 'Added';
|
||||||
$msgtype = '"calendar"; Version="'.$version.'"; Id="'.$new_event['id'].'"';
|
$msgtype = '"calendar"; Version="'.$version.'"; Id="'.$new_event['id'].'"';
|
||||||
$method = 'request';
|
$method = 'REQUEST';
|
||||||
break;
|
break;
|
||||||
case MSG_REJECTED:
|
case MSG_REJECTED:
|
||||||
$action = lang('Rejected');
|
$action = lang('Rejected');
|
||||||
$msg = 'Response';
|
$msg = 'Response';
|
||||||
$msgtype = '"calendar";';
|
$msgtype = '"calendar";';
|
||||||
$method = 'reply';
|
$method = 'REPLY';
|
||||||
break;
|
break;
|
||||||
case MSG_TENTATIVE:
|
case MSG_TENTATIVE:
|
||||||
$action = lang('Tentative');
|
$action = lang('Tentative');
|
||||||
$msg = 'Response';
|
$msg = 'Response';
|
||||||
$msgtype = '"calendar";';
|
$msgtype = '"calendar";';
|
||||||
$method = 'reply';
|
$method = 'REPLY';
|
||||||
break;
|
break;
|
||||||
case MSG_ACCEPTED:
|
case MSG_ACCEPTED:
|
||||||
$action = lang('Accepted');
|
$action = lang('Accepted');
|
||||||
$msg = 'Response';
|
$msg = 'Response';
|
||||||
$msgtype = '"calendar";';
|
$msgtype = '"calendar";';
|
||||||
$method = 'reply';
|
$method = 'REPLY';
|
||||||
break;
|
break;
|
||||||
case MSG_ALARM:
|
case MSG_ALARM:
|
||||||
$action = lang('Alarm');
|
$action = lang('Alarm');
|
||||||
$msg = 'Alarm';
|
$msg = 'Alarm';
|
||||||
$msgtype = '"calendar";';
|
$msgtype = '"calendar";';
|
||||||
$method = 'publish'; // duno if thats right
|
$method = 'PUBLISH'; // duno if thats right
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$method = 'publish';
|
$method = 'PUBLISH';
|
||||||
}
|
}
|
||||||
$notify_msg = $this->cal_prefs['notify'.$msg];
|
$notify_msg = $this->cal_prefs['notify'.$msg];
|
||||||
if (empty($notify_msg))
|
if (empty($notify_msg))
|
||||||
@ -582,7 +582,7 @@ class bocalupdate extends bocal
|
|||||||
|
|
||||||
case 'ical':
|
case 'ical':
|
||||||
$ics = ExecMethod2('calendar.boical.exportVCal',$event['id'],'2.0',$method);
|
$ics = ExecMethod2('calendar.boical.exportVCal',$event['id'],'2.0',$method);
|
||||||
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");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user