Skip to content

Commit

Permalink
Merge pull request #9779 from WeMoveEU/CRM-19963
Browse files Browse the repository at this point in the history
CRM-19963 - Use translated processor name for Paypal in all comparisons
  • Loading branch information
totten authored Jun 11, 2017
2 parents 29f9927 + aef7f33 commit 2aa6dd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CRM/Core/Payment/PayPalImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ protected function supportsPreApproval() {
* 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',
));
Expand Down

0 comments on commit 2aa6dd3

Please sign in to comment.