Remove unused paramter
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 1 Oct 2021 04:05:59 +0000 (17:05 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 1 Oct 2021 04:05:59 +0000 (17:05 +1300)
CRM/Contact/Form/Task/EmailTrait.php

index 3b23ad98f64b57ea9db21ec63c183f26fc134bd5..3c091a3ee7a97ee3d2d7e7e95431df09b03f5fd0 100644 (file)
@@ -874,7 +874,6 @@ trait CRM_Contact_Form_Task_EmailTrait {
 
       if ($this->sendMessage(
         $from,
-        $userID,
         $contactId,
         $renderedTemplate['subject'],
         $renderedTemplate['text'],
@@ -953,7 +952,6 @@ trait CRM_Contact_Form_Task_EmailTrait {
    * Send message - under refactor.
    *
    * @param $from
-   * @param $fromID
    * @param $toID
    * @param $subject
    * @param $text_message
@@ -970,11 +968,10 @@ trait CRM_Contact_Form_Task_EmailTrait {
    */
   protected function sendMessage(
     $from,
-    $fromID,
     $toID,
-    &$subject,
-    &$text_message,
-    &$html_message,
+    $subject,
+    $text_message,
+    $html_message,
     $emailAddress,
     $activityID,
     $attachments = NULL,