From: Eileen McNaughton Date: Tue, 3 Jun 2014 12:39:30 +0000 (+1200) Subject: Contribution Confirm Form - minor simplification X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e9599dfa44004de790f88f87addee32c6ebd12d5;p=civicrm-core.git Contribution Confirm Form - minor simplification --- diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index 907b546a54..f6a911b0b0 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -689,20 +689,14 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr // fix currency ID $this->_params['currencyID'] = CRM_Core_Config::singleton()->defaultCurrency; - $premiumParams = $membershipParams = $params = $this->_params; - //carry payment processor id. if ($paymentProcessorId = CRM_Utils_Array::value('id', $this->_paymentProcessor)) { $this->_params['payment_processor_id'] = $paymentProcessorId; - foreach (array( - 'premiumParams', 'membershipParams', 'tempParams', 'params') as $p) { - ${$p}['payment_processor_id'] = $paymentProcessorId; - } } if (!empty($params['image_URL'])) { CRM_Contact_BAO_Contact::processImageParams($params); } - + $premiumParams = $membershipParams = $params = $this->_params; $fields = array('email-Primary' => 1); // get the add to groups