From 2331a21cc8901ee69a57a7ade472b4b21c29e5b6 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 21 Jul 2015 11:54:17 -0300 Subject: [PATCH] Bug 14167: (QA followup) new entries in koha-conf.xml should be tested in about.pl Signed-off-by: Tomas Cohen Arazi --- about.pl | 6 ++++++ koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/about.pl b/about.pl index 4e06ae53df..847dc2b073 100755 --- a/about.pl +++ b/about.pl @@ -151,6 +151,12 @@ if ( (C4::Context->config('zebra_auth_index_mode') eq 'grs1') && ($context->{'se }; } +if ( ! defined C4::Context->config('log4perl_conf') ) { + push @xml_config_warnings, { + error => 'log4perl_entry_missing' + } +} + # Test QueryParser configuration sanity if ( C4::Context->preference( 'UseQueryParser' ) ) { # Get the QueryParser configuration file name diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index 782e61d55c..dd2bf4cbc1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -229,6 +229,13 @@ to legacy facet calculation. + [% ELSIF config_entry.error == 'log4perl_entry_missing' %] + + Warning + You are missing the <log4perl_conf> entry in your koha-conf.xml file. Please + add it, pointing to the log4perl.conf file for your Koha instance. + + [% END %] [% END %] -- 2.39.5