Loading lib/Middleware/InvitationMiddleware.php +6 −12 Original line number Diff line number Diff line Loading @@ -32,15 +32,13 @@ class InvitationMiddleware extends Middleware "meeting_head" => "Tentatively Accepted", ], "accept" => [ "meeting_title" => "Invitation Tentatively Accepted: %s", "meeting_body" => "%s has tentatively accepted your invitation to %s on %s", "meeting_title" => "Invitation Accepted: %s", "meeting_body" => "%s has accepted your invitation to %s on %s", "meeting_head" => "Accepted", ], "decline" => [ "meeting_title" => "Invitation Tentatively Accepted: %s", "meeting_body" => "%s has tentatively accepted your invitation to %s on %s", "meeting_title" => "Invitation Declined: %s", "meeting_body" => "%s has declined your invitation to %s on %s", "meeting_head" => "Declined", ], ]; Loading Loading @@ -168,12 +166,8 @@ class InvitationMiddleware extends Middleware $vObject = Reader::read($row2["calendardata"]); $SUMMARY = $vObject->VEVENT->SUMMARY; $datestart = (string) $vObject->VEVENT->DTSTART; $attendeeName = empty($vObject->VEVENT->ATTENDEE["CN"]) ? $sender : $vObject->VEVENT->ATTENDEE["CN"]; $organizername = empty($vObject->VEVENT->ORGANIZER["CN"]) ? $recipient : $vObject->VEVENT->ORGANIZER["CN"]; $attendeeName = $sender; $organizername = $recipient; if (str_contains($datestart, "T")) { $eventdate = date("F d, Y h:i", strtotime($datestart)); } else { Loading Loading
lib/Middleware/InvitationMiddleware.php +6 −12 Original line number Diff line number Diff line Loading @@ -32,15 +32,13 @@ class InvitationMiddleware extends Middleware "meeting_head" => "Tentatively Accepted", ], "accept" => [ "meeting_title" => "Invitation Tentatively Accepted: %s", "meeting_body" => "%s has tentatively accepted your invitation to %s on %s", "meeting_title" => "Invitation Accepted: %s", "meeting_body" => "%s has accepted your invitation to %s on %s", "meeting_head" => "Accepted", ], "decline" => [ "meeting_title" => "Invitation Tentatively Accepted: %s", "meeting_body" => "%s has tentatively accepted your invitation to %s on %s", "meeting_title" => "Invitation Declined: %s", "meeting_body" => "%s has declined your invitation to %s on %s", "meeting_head" => "Declined", ], ]; Loading Loading @@ -168,12 +166,8 @@ class InvitationMiddleware extends Middleware $vObject = Reader::read($row2["calendardata"]); $SUMMARY = $vObject->VEVENT->SUMMARY; $datestart = (string) $vObject->VEVENT->DTSTART; $attendeeName = empty($vObject->VEVENT->ATTENDEE["CN"]) ? $sender : $vObject->VEVENT->ATTENDEE["CN"]; $organizername = empty($vObject->VEVENT->ORGANIZER["CN"]) ? $recipient : $vObject->VEVENT->ORGANIZER["CN"]; $attendeeName = $sender; $organizername = $recipient; if (str_contains($datestart, "T")) { $eventdate = date("F d, Y h:i", strtotime($datestart)); } else { Loading