-
-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] Complete decommissioning on CRM/Contribute/Form/Task/PDFLetterC…
…ommon.php This removes the last function fromCRM/Contribute/Form/Task/PDFLetterCommon.php The function was calling a protected function on the parent which had to be unravelled. I used the method we used in https://github.com/civicrm/civicrm-core/blob/5e67eb7ff3f1f202d5112d15ad5c6a5f23f35795/CRM/SMS/Form/Upload.php#L341 to replace the code with the part that we have tested as being done in via render - ie replacing hook, contact, domain tokens & smarty parsing. However, there are quite a few tests on this code & one checked that we don't over-call the token hook. I added some caching for the results of this hook so we can start to eliminate these but I also allowed the calls to increment by 1 because it is not 1 per row I made the results of this hook optional to replaceHookTokens & in general I think that is the only place it needs to be called - perhaps once it used to pass more parameters & the results were dynamic but now they really aren't
- Loading branch information
1 parent
6e53da3
commit f99d0e5
Showing
5 changed files
with
55 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters