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 <bgkriegel@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2019-11-26 09:27:21 +01:00 committed by Martin Renvoize
parent 5ecabb315a
commit fe43d98bd1
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
2 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,7 @@
<!-- TEMPLATE FILE: [% template.name.split('/').last | html %] -->
[% USE Koha %]
[% USE raw %]
[% IF Koha.Preference('DumpTemplateVarsIntranet') %]
[% TRY %]
[% USE Stash %]
@ -9,7 +10,7 @@
<!--
[% FILTER replace('<!--', '<!- -') %]
[% FILTER replace('-->', '- ->') %]
[% Dumper.dump( Stash.stash() ) | html %]
[% Dumper.dump( Stash.stash() ) | $raw %]
[% END %]
[% END %]
-->

View file

@ -1,6 +1,7 @@
<!DOCTYPE html>
<!-- TEMPLATE FILE: [% template.name.split('/').last | html %] -->
[% USE raw %]
[% USE Koha %]
[% IF Koha.Preference('DumpTemplateVarsOpac') %]
[% TRY %]
@ -9,7 +10,7 @@
<!--
[% FILTER replace('<!--', '<!- -') %]
[% FILTER replace('-->', '- ->') %]
[% Dumper.dump( Stash.stash() ) | html %]
[% Dumper.dump( Stash.stash() ) | $raw %]
[% END %]
[% END %]
-->