using calendar_zpush not calendar_activesync

This commit is contained in:
Ralf Becker 2015-09-04 15:27:41 +00:00
parent b97024f00e
commit 8b6ba73c79

View File

@ -1223,7 +1223,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail,
if (strtolower($attach['mimeType']) == 'text/calendar' && strtolower($attach['method']) == 'request' && if (strtolower($attach['mimeType']) == 'text/calendar' && strtolower($attach['method']) == 'request' &&
isset($GLOBALS['egw_info']['user']['apps']['calendar']) && isset($GLOBALS['egw_info']['user']['apps']['calendar']) &&
($attachment = $this->mail->getAttachment($id, $attach['partID'],0,false,false,$_folderName)) && ($attachment = $this->mail->getAttachment($id, $attach['partID'],0,false,false,$_folderName)) &&
($output->meetingrequest = calendar_activesync::meetingRequest($attachment['attachment']))) ($output->meetingrequest = calendar_zpush::meetingRequest($attachment['attachment'])))
{ {
$output->messageclass = "IPM.Schedule.Meeting.Request"; $output->messageclass = "IPM.Schedule.Meeting.Request";
continue; // do NOT add attachment as attachment continue; // do NOT add attachment as attachment
@ -1292,7 +1292,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail,
*/ */
function MeetingResponse($folderid, $requestid, $response) function MeetingResponse($folderid, $requestid, $response)
{ {
if (!class_exists('calendar_activesync')) if (!class_exists('calendar_zpush'))
{ {
debugLog(__METHOD__."(...) no EGroupware calendar installed!"); debugLog(__METHOD__."(...) no EGroupware calendar installed!");
return null; return null;