fix notice messages reported on forum
authorDonald A. Lobo <lobo@civicrm.org>
Sat, 16 Nov 2013 15:52:08 +0000 (07:52 -0800)
committerDonald A. Lobo <lobo@civicrm.org>
Sat, 16 Nov 2013 15:52:08 +0000 (07:52 -0800)
CRM/Contact/Form/Task/PDFLetterCommon.php

index 0bde670b72bb935b51164e1468b535802d8c5dcc..789683788fa5e27a2c679b98d5ea34e35409d820 100644 (file)
@@ -373,7 +373,7 @@ class CRM_Contact_Form_Task_PDFLetterCommon {
     CRM_Utils_System::civiExit(1);
   }
 
-  function createActivities($form, $html_message, $contactIds) {
+  static function createActivities($form, $html_message, $contactIds) {
     //Added for CRM-12682: Add activity subject and campaign fields
     $formValues     = $form->controller->exportValues($form->getName());
 
@@ -420,7 +420,7 @@ class CRM_Contact_Form_Task_PDFLetterCommon {
     }
   }
 
-  function formatMessage(&$message) {
+  static function formatMessage(&$message) {
     $newLineOperators = array(
       'p' => array(
         'oper' => '<p>',