Enotice fixes in debug.tpl that are compatible with default escaping
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 29 Oct 2021 20:15:29 +0000 (09:15 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 5 Nov 2021 01:39:58 +0000 (14:39 +1300)
templates/CRM/common/debug.tpl

index 9000418de9a7006b625625963127697f9835a863..32d69257e487ea7535281bb7b46430af66613e1e 100644 (file)
@@ -8,26 +8,26 @@
  +--------------------------------------------------------------------+
 *}
 <!-- .tpl file invoked: {$tplFile}. Call via form.tpl if we have a form in the page. -->
-{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}