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>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 710a372200)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
d70412bf23
commit
ff7f0a867c
|
|
@ -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 New Issue