From d0b7e8cac50462af7e2323b6e34c02c199adef7c Mon Sep 17 00:00:00 2001 From: eileen Date: Sun, 14 Jun 2020 18:18:36 +1200 Subject: [PATCH] [NFC] Remove instances where html is passed to crmMoney After grepping I'm pretty confident the other params are never passed so removed --- CRM/Core/Smarty/plugins/modifier.crmMoney.php | 9 ++++----- .../Contribute/Form/AdditionalInfo/AdditionalDetail.tpl | 4 ++-- templates/CRM/Contribute/Form/AdditionalPayment.tpl | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/CRM/Core/Smarty/plugins/modifier.crmMoney.php b/CRM/Core/Smarty/plugins/modifier.crmMoney.php index eaa9cac86d..49f10f7a21 100644 --- a/CRM/Core/Smarty/plugins/modifier.crmMoney.php +++ b/CRM/Core/Smarty/plugins/modifier.crmMoney.php @@ -25,12 +25,11 @@ * @param string $currency * The (optional) currency. * - * @param null $format - * @param bool $onlyNumber - * * @return string * formatted monetary amount + * + * @throws \CRM_Core_Exception */ -function smarty_modifier_crmMoney($amount, $currency = NULL, $format = NULL, $onlyNumber = FALSE) { - return CRM_Utils_Money::format($amount, $currency, $format, $onlyNumber); +function smarty_modifier_crmMoney($amount, $currency = NULL) { + return CRM_Utils_Money::format($amount, $currency); } diff --git a/templates/CRM/Contribute/Form/AdditionalInfo/AdditionalDetail.tpl b/templates/CRM/Contribute/Form/AdditionalInfo/AdditionalDetail.tpl index 63e1ef0d62..5514bf8bd0 100644 --- a/templates/CRM/Contribute/Form/AdditionalInfo/AdditionalDetail.tpl +++ b/templates/CRM/Contribute/Form/AdditionalInfo/AdditionalDetail.tpl @@ -13,9 +13,9 @@ {$form.contribution_page_id.html|crmAddClass:twenty} - {$form.non_deductible_amount.html|crmMoney:$currency:'':1}
+
{$form.non_deductible_amount.html}
{ts}Non-deductible portion of this contribution.{/ts}
- {$form.fee_amount.html|crmMoney:$currency:'XXX':'YYY'}
+
{$form.fee_amount.html}
{ts}Processing fee for this transaction (if applicable).{/ts}
{$form.invoice_id.html}
{ts}Unique internal reference ID for this contribution.{/ts}
diff --git a/templates/CRM/Contribute/Form/AdditionalPayment.tpl b/templates/CRM/Contribute/Form/AdditionalPayment.tpl index d3403fae9b..08a41ddfa1 100644 --- a/templates/CRM/Contribute/Form/AdditionalPayment.tpl +++ b/templates/CRM/Contribute/Form/AdditionalPayment.tpl @@ -92,7 +92,7 @@ - {$form.fee_amount.html|crmMoney:$currency:'XXX':'YYY'}
+
{$form.fee_amount.html}
{ts}Processing fee for this transaction (if applicable).{/ts}
{$form.contribution_page_id.label}
{$form.note.label}{$form.note.html}
{$form.non_deductible_amount.label}
{$form.non_deductible_amount.label}
{$form.fee_amount.label}
{$form.fee_amount.label}
{$form.invoice_id.label}
{$form.trxn_id.label} {$form.trxn_id.html} {help id="id-trans_id"}
{$form.fee_amount.label}
{$form.fee_amount.label}
-- 2.25.1