From a35dd51649c64ca819be9aa9392a118f16c6f944 Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Mon, 22 Feb 2016 14:24:49 +1300 Subject: [PATCH] minor code simplification, call sendMail directly --- CRM/Contribute/Form/Task/PDF.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']; -- 2.25.1