Commit 407994cb authored by mattwire's avatar mattwire
Browse files

Merge branch 'eligiblefinancialtypes' into 'master'

Fix getting eligible financial types setting

See merge request extensions/ukgiftaid!19
parents 5b1cbbda b758d83e
......@@ -191,7 +191,7 @@ class CRM_Civigiftaid_SetContributionGiftAidEligibility {
* Whether eligible or not.
*/
private static function financialTypeIsEligible($financialType) {
$eligibleFinancialTypes = explode(',', CRM_Civigiftaid_Settings::getValue('financial_types_enabled'));
$eligibleFinancialTypes = \Civi::settings()->get('civigiftaid_financial_types_enabled');
return in_array($financialType, $eligibleFinancialTypes);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment