From aef7f33ad79a6868f684fa89617d10183c090575 Mon Sep 17 00:00:00 2001 From: Romain Thouvenin Date: Wed, 18 Jan 2017 15:32:23 +0100 Subject: [PATCH] CRM-19963 - Use translated processor name in all comparisons --- CRM/Core/Payment/PayPalImpl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index 7e34d17283..1416cd5da5 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -109,15 +109,15 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { * Should form building stop at this point? */ public function buildForm(&$form) { - if ($this->_processorName == 'PayPal Express' || $this->_processorName == 'PayPal Pro') { + if ($this->supportsPreApproval()) { $this->addPaypalExpressCode($form); - if ($this->_processorName == 'PayPal Express') { + if ($this->_processorName == ts('PayPal Express')) { CRM_Core_Region::instance('billing-block-post')->add(array( 'template' => 'CRM/Financial/Form/PaypalExpress.tpl', 'name' => 'paypal_express', )); } - if ($this->_processorName == 'PayPal Pro') { + if ($this->_processorName == ts('PayPal Pro')) { CRM_Core_Region::instance('billing-block-pre')->add(array( 'template' => 'CRM/Financial/Form/PaypalPro.tpl', )); -- 2.25.1