Bug 24732: Set DumpTemplateVars Dumper options for Indent and Sort

To test:
1 - Enable sysprefs
    DumpTemplateVarsOpac
    DumpTemplateVarsIntranet
2 - View some pages on staff client and opac
3 - View the page source
4 - See a large mass of comments including the page vars at the top of the source
5 - Refresh page and note order of vars changes
6 - Apply patch
7 - View page source on some pages and note things are much easier to read
8 - Refresh page and note variable order does not change

Signed-off-by: George Williams <george@nekls.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2020-02-25 18:51:41 +00:00 committed by Joy Nelson
parent 9056d53e32
commit a0808619e8
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
[% IF Koha.Preference('DumpTemplateVarsIntranet') %]
[% TRY %]
[% USE Stash %]
[% USE Dumper %]
[% USE Dumper( Indent=1, SortKeys=1 ) %]
<!--
[% FILTER replace('<!--', '<!- -') %]
[% FILTER replace('-->', '- ->') %]

View File

@ -6,7 +6,7 @@
[% IF Koha.Preference('DumpTemplateVarsOpac') %]
[% TRY %]
[% USE Stash %]
[% USE Dumper %]
[% USE Dumper ( Indent=1, SortKeys=1 ) %]
<!--
[% FILTER replace('<!--', '<!- -') %]
[% FILTER replace('-->', '- ->') %]