From: Eileen Date: Fri, 3 Jan 2014 03:01:10 +0000 (+1300) Subject: E Notice compliance on Pledge BAO for update actions (recent list updates) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=25e778a5f596e4084c51114bdbcb275f43f8869c;p=civicrm-core.git E Notice compliance on Pledge BAO for update actions (recent list updates) --- diff --git a/CRM/Pledge/BAO/Pledge.php b/CRM/Pledge/BAO/Pledge.php index 191af3aaf6..eb7bcfef45 100644 --- a/CRM/Pledge/BAO/Pledge.php +++ b/CRM/Pledge/BAO/Pledge.php @@ -238,9 +238,8 @@ class CRM_Pledge_BAO_Pledge extends CRM_Pledge_DAO_Pledge { ); } - $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,