From fa478d4abcb432c49ea8fdabde73e9cccefdcf50 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 29 Sep 2023 18:25:28 +1300 Subject: [PATCH] Remove backticks from a couple of places where tokens are already supported --- .../message_templates/contribution_online_receipt_html.tpl | 4 ++-- xml/templates/message_templates/event_online_receipt_text.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xml/templates/message_templates/contribution_online_receipt_html.tpl b/xml/templates/message_templates/contribution_online_receipt_html.tpl index 9d1fe4e8e2..b73afd7cfb 100644 --- a/xml/templates/message_templates/contribution_online_receipt_html.tpl +++ b/xml/templates/message_templates/contribution_online_receipt_html.tpl @@ -277,10 +277,10 @@ {/foreach} {/if} - {if !empty($isShare)} + {if {contribution.contribution_page_id.is_share|boolean}} - {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageId`" a=true fe=1 h=1}{/capture} + {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="reset=1&id={contribution.contribution_page_id}" a=true fe=1 h=1}{/capture} {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl} diff --git a/xml/templates/message_templates/event_online_receipt_text.tpl b/xml/templates/message_templates/event_online_receipt_text.tpl index 2803b10871..d9adb6fab7 100644 --- a/xml/templates/message_templates/event_online_receipt_text.tpl +++ b/xml/templates/message_templates/event_online_receipt_text.tpl @@ -261,6 +261,6 @@ You were registered by: {$payer.name} {if !empty($event.allow_selfcancelxfer)} {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if} - {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture} + {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid={participant.id}&{contact.checksum}" h=0 a=1 fe=1}{/capture} {ts}Transfer or cancel your registration:{/ts} {$selfService} {/if} -- 2.25.1