(dev/core#4531) Afform Mail Tokens - Fix rendering for localized/individual email
authorTim Otten <totten@civicrm.org>
Thu, 24 Aug 2023 07:48:10 +0000 (00:48 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 24 Aug 2023 07:49:21 +0000 (00:49 -0700)
commit94b265510b17291d258aadd1d793004f07904986
tree0f1153ebf359dc254af80866f90cf3bd3527b081
parentb16f16ed76305be72a9ea9235443ef0d97efce94
(dev/core#4531) Afform Mail Tokens - Fix rendering for localized/individual email

While sending the localized email, some UF's may reboot the container
mid-execution. This change ensures that the listeners will be re-registered.

It also makes the code prettier.
ext/afform/core/Civi/Afform/Tokens.php
ext/afform/core/afform.php