Merge pull request #14249 from yashodha/959_dev
[civicrm-core.git] / CRM / Event / Form / ManageEvent / Fee.php
index 3a02919e228bd67f8a84a0e82dbda266f13686ba..ddc1c2da065fec87d9e8aa72b922785207cd76bc 100644 (file)
@@ -374,7 +374,7 @@ class CRM_Event_Form_ManageEvent_Fee extends CRM_Event_Form_ManageEvent {
     $this->addElement('submit', $this->getButtonName('submit'), ts('Add Discount Set to Fee Table'),
       ['class' => 'crm-form-submit cancel']
     );
-    if (CRM_Contribute_BAO_Contribution::checkContributeSettings('deferred_revenue_enabled')) {
+    if (Civi::settings()->get('deferred_revenue_enabled')) {
       $deferredFinancialType = CRM_Financial_BAO_FinancialAccount::getDeferredFinancialType();
       $this->assign('deferredFinancialType', array_keys($deferredFinancialType));
     }