From 190824570aed7b745e10e1b3f123e1e5303ff382 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 26 Nov 2019 09:27:21 +0100 Subject: [PATCH] Bug 24110: Do not html filter TT vars when dumped DumpTemplateVarsIntranet and DumpTemplateVarsOpac are devs tools to display the variables sent to the template. They should not be filtered otherwise it's getting complicate to read. For instance: $VAR1 = { var => val } Test plan: Turn DumpTemplateVarsIntranet on Go to the main page Show the source of the page Confirm that the variable are displayed as it and not filtered Signed-off-by: Bernardo Gonzalez Kriegel Confirmed variable is not filtered. Fixed a little error on opac file (changed Use -> USE) No other errors --- koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc | 3 ++- koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc index bfa90f461a..0ccd70561d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc @@ -2,6 +2,7 @@ [% USE Koha %] +[% USE raw %] [% IF Koha.Preference('DumpTemplateVarsIntranet') %] [% TRY %] [% USE Stash %] @@ -9,7 +10,7 @@ ', '- ->') %] - [% Dumper.dump( Stash.stash() ) | html %] + [% Dumper.dump( Stash.stash() ) | $raw %] [% END %] [% END %] --> diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc index 292b7251c4..75ab46dfb6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc @@ -1,6 +1,7 @@ +[% USE raw %] [% USE Koha %] [% IF Koha.Preference('DumpTemplateVarsOpac') %] [% TRY %] @@ -9,7 +10,7 @@ ', '- ->') %] - [% Dumper.dump( Stash.stash() ) | html %] + [% Dumper.dump( Stash.stash() ) | $raw %] [% END %] [% END %] --> -- 2.11.0