@@ -, +, @@ - On current master (without Plack), go to about.pl - Notice no mention of Plack - Apply the patch - Reload the about page - Enable plack, and access the about page through Plack - Sign off :-D --- about.pl | 14 ++++++++++++-- koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 3 +++ 2 files changed, 15 insertions(+), 2 deletions(-) --- a/about.pl +++ a/about.pl @@ -20,10 +20,10 @@ # You should have received a copy of the GNU General Public License # along with Koha; if not, see . -use strict; -use warnings; +use Modern::Perl; use CGI qw ( -utf8 ); +use List::MoreUtils qw/ any /; use LWP::Simple; use XML::Simple; use Config; @@ -65,6 +65,16 @@ $apacheVersion = `httpd2 -v 2> /dev/null` unless $apacheVersion; $apacheVersion = `httpd -v 2> /dev/null` unless $apacheVersion; my $zebraVersion = `zebraidx -V`; +# Check running PSGI env +if ( any { /(^psgi\.|^plack\.)/i } keys %ENV ) { + $template->param( + is_psgi => 1, + psgi_server => ($ENV{ PLACK_ENV }) ? "Plack ($ENV{PLACK_ENV})" : + ($ENV{ MOD_PERL }) ? "mod_perl ($ENV{MOD_PERL})" : + 'Unknown' + ); +} + # Additional system information for warnings my $prefAutoCreateAuthorities = C4::Context->preference('AutoCreateAuthorities'); my $prefBiblioAddsAuthorities = C4::Context->preference('BiblioAddsAuthorities'); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -48,6 +48,9 @@ MySQL version: [% mysqlVersion |html %] Apache version: [% apacheVersion |html %] + [% IF (is_psgi) %] + PSGI: [% psgi_server |html %] + [% END %] Zebra version: [% zebraVersion |html %] [% IF (errZebraConnection == 10000) %] Error Zebra server seems not to be available. Is it started? --