CRM-14684 refactor function that identifies is a site supports back-office contributions
[civicrm-core.git] / CRM / Event / Page / Tab.php
index 14ff3f8421e09a685fe03fc29be16c9cbc7efefd..9d971eba4460b9fcc985bf0b0bfb7330ae4ddc74 100644 (file)
@@ -159,7 +159,7 @@ class CRM_Event_Page_Tab extends CRM_Core_Page {
     $this->preProcess();
 
     // check if we can process credit card registration
-    CRM_Core_Payment::allowBackofficeCreditCard($this);
+    $this->assign('newCredit', CRM_Core_Config::isEnabledBackOfficeCreditCardPayments());
 
     // Only show credit card registration button if user has CiviContribute permission
     if (CRM_Core_Permission::access('CiviContribute')) {