[REF] Remove unused variable
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 13 Sep 2021 02:59:16 +0000 (14:59 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 13 Sep 2021 02:59:16 +0000 (14:59 +1200)
This parameter is no longer used

CRM/Member/Form/Task/PDFLetter.php

index b0cc9ca5851d37443a8b4b08f9e9173cad7352c5..f41eef4b7f696fead196c3eeeba489bad3d12b88 100644 (file)
@@ -132,19 +132,6 @@ class CRM_Member_Form_Task_PDFLetter extends CRM_Member_Form_Task {
       $membership = $memberships[$membershipID];
       // get contact information
       $contactId = $membership['contact_id'];
-      $params = ['contact_id' => $contactId];
-      //getTokenDetails is much like calling the api contact.get function - but - with some minor
-      // special handlings. It precedes the existence of the api
-      [$contacts] = CRM_Utils_Token::getTokenDetails(
-        $params,
-        $returnProperties,
-        $skipOnHold,
-        $skipDeceased,
-        NULL,
-        $messageToken,
-        'CRM_Contribution_Form_Task_PDFLetterCommon'
-      );
-
       $tokenHtml = CRM_Utils_Token::replaceEntityTokens('membership', $membership, $html_message, $messageToken);
       $html[] = CRM_Core_BAO_MessageTemplate::renderTemplate(['messageTemplate' => ['msg_html' => $tokenHtml], 'contactId' => $contactId])['html'];