Merge pull request #23044 from braders/https-maps-links
[civicrm-core.git] / CRM / Event / ICalendar.php
index c68fa5481de54c0ff5b9bdb8671f1d3b94b28871..a4cc998fd7b8f59890f48b4aeb6bc98323a8071a 100644 (file)
@@ -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);
@@ -47,6 +47,7 @@ class CRM_Event_ICalendar extends CRM_Core_Page {
     $config = CRM_Core_Config::singleton();
 
     $info = CRM_Event_BAO_Event::getCompleteInfo($start, $type, $id, $end);
+
     $template->assign('events', $info);
     $template->assign('timezone', @date_default_timezone_get());