From: deb.monish Date: Wed, 13 Sep 2017 08:33:19 +0000 (+0530) Subject: fix payment type label X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b3453b53140516f3c2afcfa6e4b8a9f01c5945ae;p=civicrm-core.git fix payment type label --- diff --git a/CRM/Core/Payment/Form.php b/CRM/Core/Payment/Form.php index c4e369bea3..4988ee531c 100644 --- a/CRM/Core/Payment/Form.php +++ b/CRM/Core/Payment/Form.php @@ -207,8 +207,7 @@ class CRM_Core_Payment_Form { * @return string */ public static function getPaymentTypeLabel($paymentProcessor) { - $paymentProcessorObject = Civi\Payment\System::singleton()->getByProcessor($paymentProcessor); - return ts(($paymentProcessorObject->getPaymentTypeLabel()) . ' Information'); + return ts(($paymentProcessor['object']->getPaymentTypeLabel()) . ' Information'); } /**