From 4274d237e03fecd150fe759c3af89cffb97c4d67 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 9 Sep 2021 19:04:39 +1200 Subject: [PATCH] Follow up on removing contributeMode from templates Per https://github.com/civicrm/civicrm-core/pull/21059 its a really long time since this was in the stock templates --- CRM/Contribute/BAO/Contribution.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 9c9e22e035..4b400a8b69 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -2713,11 +2713,6 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac $template->assign('cancelSubscriptionUrl', $paymentObject->subscriptionURL($entityID, $entity, 'cancel')); $template->assign('updateSubscriptionBillingUrl', $paymentObject->subscriptionURL($entityID, $entity, 'billing')); $template->assign('updateSubscriptionUrl', $paymentObject->subscriptionURL($entityID, $entity, 'update')); - - if ($this->_relatedObjects['paymentProcessor']['billing_mode'] & CRM_Core_Payment::BILLING_MODE_FORM) { - //direct mode showing billing block, so use directIPN for temporary - $template->assign('contributeMode', 'directIPN'); - } } // todo remove strtolower - check consistency if (strtolower($this->_component) === 'event') { -- 2.25.1