Repository navigation
Conversation
Add a core.messenger_template_paths event to messenger::template(), fired just before the email template search paths are passed to set_template_paths(). A listener can add its own directory to template_paths so an enabled extension can override a core notification email .txt template without patching core. This is the 3.3.x version of the event added to master in PHPBB-17722. PHPBB-17750
4 tasks done
|
The attempt to merge branch
A separate PR will be needed to merge |
4 tasks done
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist:
Tracker ticket:
https://tracker.phpbb.com/browse/PHPBB-17750
This is the 3.3.x version of #7054 (PHPBB-17722), which added
core.messenger_template_pathsto master for 4.0.0-b1. It adds the same event tomessenger::template()inincludes/functions_messenger.php, just beforeset_template_paths(), with the same variables (template_lang,template_dir_prefix,template_paths). A listening extension can add its own directory totemplate_pathsand supply an override for a core notification email.txttemplate (for examplepost_in_queue.txt) without patching core.tests/email/email_parsing_test.phpnow sets a mock$phpbb_dispatcher, becausemessenger::template()uses it now. This matches the dispatcher mock change in #7054's test.Merging 3.3.x up into master will give a modify/delete conflict on
includes/functions_messenger.php, because master removed that file when it moved the messenger tomessenger\method\base. Keep master's deletion: master already has this event from #7054, so no separate master PR is needed.Replaces #7097, which was opened under PHPBB-17722 before that ticket was found to be closed as fixed for 4.0.0-b1.
Investigated and written by Claude on behalf of William Jacoby (bonelifer).