From 8fa09e4b52bf0a6a98bd17f9b5693b7c686ad5ef Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 25 Feb 2020 18:51:41 +0000 Subject: [PATCH] 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 --- koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc | 2 +- 2 files changed, 2 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 0ccd70561d..2c493a8881 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 @@ -6,7 +6,7 @@ [% IF Koha.Preference('DumpTemplateVarsIntranet') %] [% TRY %] [% USE Stash %] - [% USE Dumper %] + [% USE Dumper( Indent=1, SortKeys=1 ) %] ', '- ->') %] 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 75ab46dfb6..03d7cf1707 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 @@ -6,7 +6,7 @@ [% IF Koha.Preference('DumpTemplateVarsOpac') %] [% TRY %] [% USE Stash %] - [% USE Dumper %] + [% USE Dumper ( Indent=1, SortKeys=1 ) %] ', '- ->') %] -- 2.11.0