-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/core#4951 Add support for smarty debugging #29183
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
The issue associated with the Pull Request can be viewed at https://lab.civicrm.org/dev/core/-/issues/4951 |
CRM/Utils/String.php
Outdated
@@ -1034,6 +1034,11 @@ public static function parseOneOffStringThroughSmarty($templateString) { | |||
$cachingValue = $smarty->caching; | |||
set_error_handler([$smarty, 'handleSmartyError'], E_USER_ERROR); | |||
$smarty->caching = 0; | |||
if (CRM_Utils_Constant::value('SMARTY_DEBUG_STRINGS')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eileenmcnaughton do we need a specific one for smarty here why not just like the general debugging flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seamuslee001 yeah could do - it could get pretty noisy?
1724585
to
ad3006a
Compare
ad3006a
to
6cb5804
Compare
Overview
Note this is called all the time so I just did a quick check that message templates still render - but in fact all these changes came out of my efforts to get Smarty3 tests passing so have been put through the test ringer