From 33af228ef75cccc11230aa2164b7b0fb1976cefe Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 24 May 2015 23:27:27 +1200 Subject: [PATCH] CRM-16555 remove unnecessary variable assignment --- templates/CRM/Contribute/Form/AdditionalPayment.tpl | 6 ------ templates/CRM/Contribute/Form/Contribution.tpl | 11 +++-------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/templates/CRM/Contribute/Form/AdditionalPayment.tpl b/templates/CRM/Contribute/Form/AdditionalPayment.tpl index d0b9c8d802..65b2ef84d6 100644 --- a/templates/CRM/Contribute/Form/AdditionalPayment.tpl +++ b/templates/CRM/Contribute/Form/AdditionalPayment.tpl @@ -62,12 +62,6 @@
- {if $contributionMode == 'test'} - {assign var=contribMode value="TEST"} - {elseif $contributionMode == 'live'} - {assign var=contribMode value="LIVE"} - {/if} - {if !$email}
 {ts}You will not be able to send an automatic email receipt for this payment because there is no email address recorded for this contact. If you want a receipt to be sent when this payment is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the payment.{/ts} diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index f836a1f853..e90b8354bc 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -35,12 +35,6 @@
- {if $contributionMode == 'test' } - {assign var=contribMode value="TEST"} - {elseif $contributionMode == 'live'} - {assign var=contribMode value="LIVE"} - {/if} - {if !$email and $action neq 8 and $context neq 'standalone'}
 {ts}You will not be able to send an automatic email receipt for this contribution because there is no email address recorded for this contact. If you want a receipt to be sent when this contribution is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the contribution.{/ts} @@ -49,9 +43,10 @@ {if $contributionMode}
{if $contactId} - {ts 1=$displayName 2=$contribMode}Use this form to submit a new contribution on behalf of %1. A %2 transaction will be submitted using the selected payment processor.{/ts} + {ts 1=$displayName 2=$contributionMode|upper}Use this form to submit a new contribution on behalf of %1. A + %2 transaction will be submitted using the selected payment processor.{/ts} {else} - {ts 1=$displayName 2=$contribMode}Use this form to submit a new contribution. A %2 transaction will be submitted using the selected payment processor.{/ts} + {ts 1=$displayName 2=$contributionMode|upper}Use this form to submit a new contribution. A %2 transaction will be submitted using the selected payment processor.{/ts} {/if}
{/if} -- 2.25.1