minor code simplification, call sendMail directly
authoreileenmcnaugton <eileen@fuzion.co.nz>
Mon, 22 Feb 2016 01:24:49 +0000 (14:24 +1300)
committereileenmcnaugton <eileen@fuzion.co.nz>
Mon, 22 Feb 2016 01:24:49 +0000 (14:24 +1300)
CRM/Contribute/Form/Task/PDF.php

index 44db2609557de04e1af68b9532687ebf2d604178..774653e0d605de126c83312cc62991c095eb6fd6 100644 (file)
@@ -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'];