Bug 14167: (QA followup) new entries in koha-conf.xml should be tested in about.pl
authorTomas Cohen Arazi <tomascohen@unc.edu.ar>
Tue, 21 Jul 2015 14:54:17 +0000 (11:54 -0300)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Tue, 21 Jul 2015 14:54:17 +0000 (11:54 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>

about.pl
koha-tmpl/intranet-tmpl/prog/en/modules/about.tt

index 4e06ae5..847dc2b 100755 (executable)
--- 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
index 782e61d..dd2bf4c 100644 (file)
                         to legacy facet calculation.
                     </td>
                 </tr>
+                [% ELSIF config_entry.error == 'log4perl_entry_missing' %]
+                <tr>
+                    <th scope="row"><b>Warning</b></th>
+                    <td>You are missing the &lt;log4perl_conf&gt; entry in your koha-conf.xml file. Please
+                        add it, pointing to the log4perl.conf file for your Koha instance.
+                    </td>
+                </tr>
                 [% END %]
             [% END %]
             </table>