fix notice messages on function definition and call
authorDonald A. Lobo <lobo@civicrm.org>
Mon, 18 Nov 2013 15:13:13 +0000 (07:13 -0800)
committerDonald A. Lobo <lobo@civicrm.org>
Mon, 18 Nov 2013 15:13:13 +0000 (07:13 -0800)
CRM/Member/Form/Task/PDFLetter.php
CRM/Member/Form/Task/PDFLetterCommon.php

index 673ae17907c9c368ca9f933349f574421466c807..0103171b8d530f18554a0b829b69de8061186f18 100644 (file)
@@ -97,7 +97,9 @@ class CRM_Member_Form_Task_PDFLetter extends CRM_Member_Form_Task {
     $this->setContactIDs();
     $skipOnHold = isset($this->skipOnHold) ? $this->skipOnHold : FALSE;
     $skipDeceased = isset($this->skipDeceased) ? $this->skipDeceased : TRUE;
-    CRM_Member_Form_Task_PDFLetterCommon::postProcess($this, $this->_memberIds, $skipOnHold, $skipDeceased, $this->_contactIds);
+    CRM_Member_Form_Task_PDFLetterCommon::postProcessMembers(
+      $this, $this->_memberIds, $skipOnHold, $skipDeceased, $this->_contactIds
+    );
   }
 
   /**
index f2036415eaa3f93b117495aeabd7cbcf98d7fca8..dee65209049a26d5f52b91dc7f92815cba1c2e88 100644 (file)
@@ -16,9 +16,19 @@ class CRM_Member_Form_Task_PDFLetterCommon extends CRM_Contact_Form_Task_PDFLett
    */
   static function postProcess(&$form, $membershipIDs, $skipOnHold, $skipDeceased, $contactIDs) {
 
-    list($formValues, $categories, $html_message, $messageToken, $returnProperties) = self::processMessageTemplate($form);
+    list($formValues, $categories, $html_message, $messageToken, $returnProperties) =
+      self::processMessageTemplate($form);
 
-    $html = self::generateHTML($membershipIDs, $returnProperties, $skipOnHold, $skipDeceased, $messageToken, $html_message, $categories);
+    $html =
+      self::generateHTML(
+        $membershipIDs,
+        $returnProperties,
+        $skipOnHold,
+        $skipDeceased,
+        $messageToken,
+        $html_message,
+        $categories
+      );
     self::createActivities($form, $html_message, $contactIDs);
 
     CRM_Utils_PDF_Utils::html2pdf($html, "CiviLetter.pdf", FALSE, $formValues);