);
}
- $config = CRM_Core_Config::singleton();
- $contributionTypes = CRM_Contribute_PseudoConstant::financialType();
- $title = CRM_Contact_BAO_Contact::displayName($pledge->contact_id) . ' - (' . ts('Pledged') . ' ' . CRM_Utils_Money::format($pledge->amount, $pledge->currency) . ' - ' . $contributionTypes[$pledge->financial_type_id] . ')';
+ $contributionTypes = CRM_Contribute_PseudoConstant::financialType();
+ $title = CRM_Contact_BAO_Contact::displayName($pledge->contact_id) . ' - (' . ts('Pledged') . ' ' . CRM_Utils_Money::format($pledge->amount, $pledge->currency) . ' - ' . CRM_Utils_Array::value($pledge->financial_type_id, $contributionTypes) . ')';
// add the recently created Pledge
CRM_Utils_Recent::add($title,