Skip to content
Snippets Groups Projects
Commit e1281f27 authored by Eileen McNaughton's avatar Eileen McNaughton
Browse files

Remove old comment

parent 03946c16
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment