Remove backticks from a couple of places where tokens are already supported
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 29 Sep 2023 05:25:28 +0000 (18:25 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 29 Sep 2023 05:25:28 +0000 (18:25 +1300)
xml/templates/message_templates/contribution_online_receipt_html.tpl
xml/templates/message_templates/event_online_receipt_text.tpl

index 9d1fe4e8e26dc4ddd32cb142b7e477eaa1d51f18..b73afd7cfbb44b0d993218049c4507f37b7e96ba 100644 (file)
       {/foreach}
      {/if}
 
-     {if !empty($isShare)}
+     {if {contribution.contribution_page_id.is_share|boolean}}
       <tr>
         <td colspan="2" {$valueStyle}>
-            {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}
         </td>
       </tr>
index 2803b10871032ecd25a4ca18270e781584f7c10d..d9adb6fab7d234b703b34404ce7050b057f7c0d3 100644 (file)
@@ -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}