]> git.koha-community.org Git - koha.git/commit
Bug 7895: Test for PSGI-related env to report in about.pl
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 21 Oct 2015 01:50:47 +0000 (22:50 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 10 Nov 2015 18:18:28 +0000 (15:18 -0300)
commitda5629192a369e6c8a48ac11e40285ee06fdcb14
tree73c800972d43deedf64264e0a7acebcd96625315
parent0ba1fb9e7739e66f57199bba2b4809e539a00237
Bug 7895: Test for PSGI-related env to report in about.pl

This patch introduces a test for psgi/plack in %ENV and uses that data
to report in the about page.

To test:
- On current master (without Plack), go to about.pl
- Notice no mention of Plack
- Apply the patch
- Reload the about page
=> SUCCESS: No change
- Enable plack, and access the about page through Plack
=> SUCCESS: There is a PSGI label, showing that you are running Plack
- Sign off :-D

Regards

PS: I haven't tested the mod_perl scenario, I just grabbed the MOD_PERL env var
from the docs.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
about.pl
koha-tmpl/intranet-tmpl/prog/en/modules/about.tt