From 66b337454ef5686872ed191e1f831234d3503e95 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 17 Jun 2021 09:04:05 -0400 Subject: [PATCH] Show smarty E-notices when in debug mode --- CRM/Core/Smarty.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Core/Smarty.php b/CRM/Core/Smarty.php index 3ee7d4675f..5c3afb207f 100644 --- a/CRM/Core/Smarty.php +++ b/CRM/Core/Smarty.php @@ -147,6 +147,10 @@ class CRM_Core_Smarty extends Smarty { $this->load_filter('pre', 'resetExtScope'); $this->assign('crmPermissions', new CRM_Core_Smarty_Permissions()); + + if ($config->debug) { + $this->error_reporting = E_ALL; + } } /** -- 2.25.1