X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FICalendar.php;h=7b30c95439911da6364a06c2ec2eaa2590d8dad5;hb=246f96f4b71c0903ba85fc317b6864e128dc841b;hp=8a1fb937df8995db8fcdf10e5f5bae5e76c0580c;hpb=0a70c96f8ebeb266970c59cf67ccfa744c8c1b78;p=civicrm-core.git diff --git a/CRM/Event/ICalendar.php b/CRM/Event/ICalendar.php index 8a1fb937df..7b30c95439 100644 --- a/CRM/Event/ICalendar.php +++ b/CRM/Event/ICalendar.php @@ -12,7 +12,7 @@ /** * Class to generate various "icalendar" type event feeds */ -class CRM_Event_ICalendar extends CRM_Core_Page { +class CRM_Event_ICalendar { /** * Heart of the iCalendar data assignment process. The runner gets all the meta @@ -21,7 +21,7 @@ class CRM_Event_ICalendar extends CRM_Core_Page { * Else outputs iCalendar format per IETF RFC2445. Page param true means send * to browser as inline content. Else, we send .ics file as attachment. */ - public function run() { + public static function run() { $id = CRM_Utils_Request::retrieveValue('id', 'Positive', NULL, FALSE, 'GET'); $type = CRM_Utils_Request::retrieveValue('type', 'Positive', 0); $start = CRM_Utils_Request::retrieveValue('start', 'Positive', 0); @@ -70,7 +70,7 @@ class CRM_Event_ICalendar extends CRM_Core_Page { CRM_Utils_ICalendar::send($calendar, 'text/xml', 'utf-8'); } else { - CRM_Utils_ICalendar::send($calendar, 'text/plain', 'utf-8'); + CRM_Utils_ICalendar::send($calendar, 'text/calendar', 'utf-8'); } } else {