Remove deprecated use of format money
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 23 Jun 2021 06:00:15 +0000 (18:00 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 23 Jun 2021 06:00:15 +0000 (18:00 +1200)
This is logging deprecation errors. It doesn't work quite right before or after but
I suspect no-one much cares as it hasn't been raised before now

CRM/Contribute/Form/AdditionalInfo.php
templates/CRM/Contribute/Form/AdditionalInfo/Premium.tpl

index 93c8d59779f80fcf0bdadecdd628958812f035ef..4da64147daef860a9944c57f970b54ec07c0232a 100644 (file)
@@ -27,7 +27,7 @@ class CRM_Contribute_Form_AdditionalInfo {
    *
    * @param CRM_Core_Form $form
    */
-  public static function buildPremium(&$form) {
+  public static function buildPremium($form) {
     //premium section
     $form->add('hidden', 'hidden_Premium', 1);
     $sel1 = $sel2 = [];
index c25f009fab310aba164ecc8b90c684f5b56fa95e..99e6a19c824c6cbeb8ff2671cd624f19879b32b4 100644 (file)
@@ -20,7 +20,7 @@
     <table class="form-layout-compressed">
       <tr class="crm-contribution-form-block-min_amount">
         <td class="label">{$form.min_amount.label}</td>
-        <td class="html-adjust">{$form.min_amount.html|crmAddClass:'no-border'|crmMoney:$currency}</td>
+        <td class="html-adjust">{$form.min_amount.html}</td>
       </tr>
     </table>
     <div class="spacer"></div>