Move event ical icons to iCalLinks.tpl and supply URLs centrally
[civicrm-core.git] / CRM / Event / Form / Registration / ThankYou.php
index d186528e1877f414de3449af464e138cb2f25024..4f9898b540065ff07aff5cfb1a5d8678f0ea0d0d 100644 (file)
@@ -175,6 +175,8 @@ class CRM_Event_Form_Registration_ThankYou extends CRM_Event_Form_Registration {
       $this->assign('friendURL', $url);
     }
 
+    $this->assign('iCal', CRM_Event_BAO_Event::getICalLinks($this->_eventId));
+
     $this->freeze();
 
     //lets give meaningful status message, CRM-4320.