cache in main singleton class
authorEileen McNaughton <eileen@fuzion.co.nz>
Wed, 7 Jan 2015 01:44:06 +0000 (14:44 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Wed, 7 Jan 2015 01:44:06 +0000 (14:44 +1300)
CRM/Core/Payment.php

index 7345ab67bf7f84d3a7a48b3ce412b6021e202bd6..c4b658094405c9a8d6770cee35b5842d669d0f4b 100644 (file)
@@ -125,7 +125,7 @@ abstract class CRM_Core_Payment {
       }
 
       //load the object.
-      self::$_singleton[$cacheKey] = $paymentClass::singleton($mode, $paymentProcessor);
+      self::$_singleton[$cacheKey] = new $paymentClass($mode, $paymentProcessor);
     }
 
     //load the payment form for required processor.