Merge pull request #21575 from agh1/5.42.0-releasenotes-initial
[civicrm-core.git] / CRM / Core / Smarty.php
index 3ee7d4675f8cc8a54850c792f4d5a402000ed67e..5c3afb207f5a759cf869414eaf8a57ae4d8446af 100644 (file)
@@ -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;
+    }
   }
 
   /**