Skip to content
Snippets Groups Projects
Unverified Commit 9b17d74a authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #21414 from eileenmcnaughton/greet

#2814 Remove redundant call to `replaceContactTokens`
parents 39569704 2d1f2aed
Branches
Tags
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment