Merge pull request #22449 from mattwire/phpnotices
[civicrm-core.git] / templates / CRM / common / civicrm.settings.php.template
index 1747c0e72d5204fd54ecc4923c846697ab98ce7e..2ee27829d9b493b033ceb5e4d680534e4ff7d9b6 100644 (file)
@@ -193,7 +193,19 @@ if (!defined('CIVICRM_TEMPLATE_COMPILEDIR')) {
  *
  */
 //if (!defined('CIVICRM_TEMPLATE_COMPILE_CHECK')) {
-//  define( 'CIVICRM_TEMPLATE_COMPILE_CHECK', FALSE);
+//  define('CIVICRM_TEMPLATE_COMPILE_CHECK', FALSE);
+//}
+
+/**
+ * Smarty escape on output.
+ *
+ * This tells smarty to pass all variables through the escape function
+ * unless they are piped to smarty:nodefaults (eg. {$myScript|smarty:nodefaults}
+ * At this stage it should only be enabled on development sites.
+ * @see https://github.com/civicrm/civicrm-core/pull/21935
+ */
+//if (!defined('CIVICRM_SMARTY_DEFAULT_ESCAPE')) {
+//  define('CIVICRM_SMARTY_DEFAULT_ESCAPE', TRUE);
 //}
 
 /**