From 2d1f2aed3c33aff9eaa4286b13508ea4e1cdc2ce Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 9 Sep 2021 14:01:42 +1200 Subject: [PATCH] Remove redundant call --- Civi/Token/TokenCompatSubscriber.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Civi/Token/TokenCompatSubscriber.php b/Civi/Token/TokenCompatSubscriber.php index 3ebc0a09f9..944ce14730 100644 --- a/Civi/Token/TokenCompatSubscriber.php +++ b/Civi/Token/TokenCompatSubscriber.php @@ -143,10 +143,6 @@ class TokenCompatSubscriber implements EventSubscriberInterface { if (!empty($e->context['contact'])) { \CRM_Utils_Token::replaceGreetingTokens($e->string, $e->context['contact'], $e->context['contact']['contact_id'], NULL, $useSmarty); - $e->string = \CRM_Utils_Token::replaceContactTokens($e->string, $e->context['contact'], $isHtml, $e->message['tokens'], TRUE, $useSmarty); - - // FIXME: This may depend on $contact being merged with hook values. - $e->string = \CRM_Utils_Token::replaceHookTokens($e->string, $e->context['contact'], $e->context['hookTokenCategories'], $isHtml, $useSmarty); } if ($useSmarty) { -- 2.25.1