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:
parent
5ecabb315a
commit
fe43d98bd1
2 changed files with 4 additions and 2 deletions
|
@ -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 %]
|
||||
-->
|
||||
|
|
|
@ -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 %]
|
||||
-->
|
||||
|
|
Loading…
Reference in a new issue