projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move event ical icons to iCalLinks.tpl and supply URLs centrally
[civicrm-core.git]
/
CRM
/
Event
/
Form
/
Registration
/
ThankYou.php
diff --git
a/CRM/Event/Form/Registration/ThankYou.php
b/CRM/Event/Form/Registration/ThankYou.php
index 01b19c5b25f8521b8234b8a9da01b9a5fa658334..4f9898b540065ff07aff5cfb1a5d8678f0ea0d0d 100644
(file)
--- a/
CRM/Event/Form/Registration/ThankYou.php
+++ b/
CRM/Event/Form/Registration/ThankYou.php
@@
-120,7
+120,7
@@
class CRM_Event_Form_Registration_ThankYou extends CRM_Event_Form_Registration {
$this->assign('trxn_id', $this->_trxnId);
//cosider total amount.
$this->assign('trxn_id', $this->_trxnId);
//cosider total amount.
- $this->assign('isAmountzero',
($this->_totalAmount <= 0) ? TRUE : FALSE
);
+ $this->assign('isAmountzero',
$this->_totalAmount <= 0
);
$this->assign('defaultRole', FALSE);
if (CRM_Utils_Array::value('defaultRole', $this->_params[0]) == 1) {
$this->assign('defaultRole', FALSE);
if (CRM_Utils_Array::value('defaultRole', $this->_params[0]) == 1) {
@@
-175,6
+175,8
@@
class CRM_Event_Form_Registration_ThankYou extends CRM_Event_Form_Registration {
$this->assign('friendURL', $url);
}
$this->assign('friendURL', $url);
}
+ $this->assign('iCal', CRM_Event_BAO_Event::getICalLinks($this->_eventId));
+
$this->freeze();
//lets give meaningful status message, CRM-4320.
$this->freeze();
//lets give meaningful status message, CRM-4320.