CRM-14684 refactor function that identifies is a site supports back-office contributions
[civicrm-core.git] / CRM / Contribute / Page / Tab.php
index bac070363ac614b8db955f7d30f930bd0c3596b5..b6093725a989a7475249e98010b916f92c2401c8 100644 (file)
@@ -283,7 +283,7 @@ class CRM_Contribute_Page_Tab extends CRM_Core_Page {
     $this->preProcess();
 
     // check if we can process credit card contribs
-    CRM_Core_Payment::allowBackofficeCreditCard($this);
+    $this->assign('newCredit', CRM_Core_Config::isEnabledBackOfficeCreditCardPayments());
 
     $this->setContext();