From: eileenmcnaugton Date: Mon, 22 Feb 2016 01:24:49 +0000 (+1300) Subject: minor code simplification, call sendMail directly X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a35dd51649c64ca819be9aa9392a118f16c6f944;p=civicrm-core.git minor code simplification, call sendMail directly --- diff --git a/CRM/Contribute/Form/Task/PDF.php b/CRM/Contribute/Form/Task/PDF.php index 44db260955..774653e0d6 100644 --- a/CRM/Contribute/Form/Task/PDF.php +++ b/CRM/Contribute/Form/Task/PDF.php @@ -185,7 +185,8 @@ AND {$this->_componentClause}"; $objects['contribution']->receive_date = CRM_Utils_Date::isoToMysql($objects['contribution']->receive_date); $values = array(); - $mail = $elements['baseIPN']->sendMail($input, $ids, $objects, $values, FALSE, $elements['createPdf']); + $mail = CRM_Contribute_BAO_Contribution::sendMail($input, $ids, $objects['contribution'], $values, FALSE, + $elements['createPdf']); if ($mail['html']) { $message[] = $mail['html'];