Merge pull request #14326 from civicrm/5.14
[civicrm-core.git] / CRM / Financial / BAO / FinancialAccount.php
index 02ff4d9de89dd0440b1c3d3afafa92712ea66a26..c8f33573705bddb7a493a7e4964308ccf38ddc01 100644 (file)
@@ -379,7 +379,7 @@ LIMIT 1";
    *
    */
   public static function checkFinancialTypeHasDeferred($params, $contributionID = NULL, $priceSetFields = NULL) {
-    if (!CRM_Contribute_BAO_Contribution::checkContributeSettings('deferred_revenue_enabled')) {
+    if (!Civi::settings()->get('deferred_revenue_enabled')) {
       return FALSE;
     }
     $recognitionDate = CRM_Utils_Array::value('revenue_recognition_date', $params);