X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPayment.php;h=56249840903185d4f2f806e43a08b0e0daa56e21;hb=5da97e99f4ee7507cb2f4f91177c021229b6010e;hp=c9e004ac2b8680fb2f100661c882afa899e4c3d0;hpb=9e1999aab870ae78046c47f3bf9d627fcee4c600;p=civicrm-core.git diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index c9e004ac2b..5624984090 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -255,16 +255,12 @@ abstract class CRM_Core_Payment { // Check pp is extension $ext = CRM_Extension_System::singleton()->getMapper(); if ($ext->isExtensionKey($dao->class_name)) { - $extension_instance_found = TRUE; $paymentClass = $ext->keyToClass($dao->class_name, 'payment'); require_once $ext->classToPath($paymentClass); } else { // Legacy or extension as module instance - if(empty($paymentClass)) { - $paymentClass = 'CRM_Core_' . $dao->class_name; - - } + $paymentClass = 'CRM_Core_' . $dao->class_name; } $paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment($dao->processor_id, $mode); @@ -288,6 +284,7 @@ abstract class CRM_Core_Payment { // Everything, it seems, is ok - execute pp callback handler $processorInstance->$method(); + $extension_instance_found = TRUE; } if (!$extension_instance_found) CRM_Core_Error::fatal(