From 4e106a784f6a9f36d7e666e07aa25d520742fce4 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 30 Oct 2021 09:15:29 +1300 Subject: [PATCH] Enotice fixes in debug.tpl that are compatible with default escaping --- templates/CRM/common/debug.tpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/CRM/common/debug.tpl b/templates/CRM/common/debug.tpl index 9000418de9..32d69257e4 100644 --- a/templates/CRM/common/debug.tpl +++ b/templates/CRM/common/debug.tpl @@ -8,26 +8,26 @@ +--------------------------------------------------------------------+ *} -{if !empty($smarty.get.smartyDebug)} +{if isset($smarty.get.smartyDebug|smarty:nodefaults)} {debug} {/if} -{if !empty($smarty.get.sessionReset)} +{if isset($smarty.get.sessionReset|smarty:nodefaults)} {$session->reset($smarty.get.sessionReset)} {/if} -{if !empty($smarty.get.sessionDebug)} +{if isset($smarty.get.sessionDebug|smarty:nodefaults)} {$session->debug($smarty.get.sessionDebug)} {/if} -{if !empty($smarty.get.directoryCleanup)} +{if isset($smarty.get.directoryCleanup|smarty:nodefaults)} {$config->cleanup($smarty.get.directoryCleanup)} {/if} -{if !empty($smarty.get.cacheCleanup)} +{if isset($smarty.get.cacheCleanup|smarty:nodefaults)} {$config->clearDBCache()} {/if} -{if !empty($smarty.get.configReset)} +{if isset($smarty.get.configReset|smarty:nodefaults)} {$config->reset()} {/if} -- 2.25.1