From: Seamus Lee Date: Tue, 4 Apr 2017 04:27:48 +0000 (+1000) Subject: Alter var and comment as per Eileen X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4199eb7e6d789ca4d6c037dd1f75c16cad86f29c;p=civicrm-core.git Alter var and comment as per Eileen --- diff --git a/CRM/Financial/BAO/PaymentProcessor.php b/CRM/Financial/BAO/PaymentProcessor.php index e9b860e798..37b6f2f678 100644 --- a/CRM/Financial/BAO/PaymentProcessor.php +++ b/CRM/Financial/BAO/PaymentProcessor.php @@ -291,13 +291,13 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces * @param string|NULL $mode * only return this mode - test|live or NULL for all * @param bool $reset - * @param bool $domain - * Dp we want to limit this to jusst the current domain. + * @param bool $isCurrentDomainOnly + * Do we only want to load payment processors associated with the current domain. * * @throws CiviCRM_API3_Exception * @return array */ - public static function getAllPaymentProcessors($mode = 'all', $reset = FALSE, $domain = TRUE) { + public static function getAllPaymentProcessors($mode = 'all', $reset = FALSE, $isCurrentDomainOnly = TRUE) { $cacheKey = 'CRM_Financial_BAO_Payment_Processor_' . $mode . '_' . CRM_Core_Config::domainID(); if (!$reset) { @@ -312,7 +312,7 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces 'options' => array('sort' => 'is_default DESC, name', 'limit' => 0), 'api.payment_processor_type.getsingle' => 1, ); - if ($domain) { + if ($isCurrentDomainOnly) { $retrievalParameters['domain_id'] = CRM_Core_Config::domainID(); } if ($mode == 'test') {