From e1281f272c201688ea4a5329c582dc284f3d8b56 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 23 Sep 2021 12:54:43 +1200 Subject: [PATCH] Remove old comment --- Civi/Token/TokenCompatSubscriber.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/Civi/Token/TokenCompatSubscriber.php b/Civi/Token/TokenCompatSubscriber.php index 3b49684471..1a311cd330 100644 --- a/Civi/Token/TokenCompatSubscriber.php +++ b/Civi/Token/TokenCompatSubscriber.php @@ -422,8 +422,6 @@ class TokenCompatSubscriber implements EventSubscriberInterface { if ($useSmarty) { $smartyVars = []; foreach ($e->context['smartyTokenAlias'] ?? [] as $smartyName => $tokenName) { - // Note: $e->row->tokens resolves event-based tokens (eg CRM_*_Tokens). But if the target token relies on the - // above bits (replaceGreetingTokens=>replaceContactTokens=>replaceHookTokens) then this lookup isn't sufficient. $smartyVars[$smartyName] = \CRM_Utils_Array::pathGet($e->row->tokens, explode('.', $tokenName)); } \CRM_Core_Smarty::singleton()->pushScope($smartyVars); -- 2.25.1