CRM-14684 refactor function that identifies is a site supports back-office contributions
[civicrm-core.git] / CRM / Core / Block.php
index bbf5ec6e52fb19465a4417cd1496aa651c69587a..5690a41da8af0ad26609a4082bf8716ee1bcb5be 100644 (file)
@@ -368,7 +368,7 @@ class CRM_Core_Block {
 
       if (!empty($config->enableComponents)) {
         // check if we can process credit card contribs
-        $newCredit = CRM_Core_Payment::allowBackofficeCreditCard();
+        $newCredit = CRM_Core_Config::isEnabledBackOfficeCreditCardPayments();
 
         foreach ($components as $componentName => $obj) {
           if (in_array($componentName, $config->enableComponents)) {