]> git.koha-community.org Git - koha.git/commit
Bug 5600 follow-up: Fix commandline check in order to work under Plack
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 3 Aug 2012 14:26:34 +0000 (16:26 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 3 Aug 2012 14:57:14 +0000 (16:57 +0200)
commitc5e6fb7227d4d30818ca013f0d2cf9bde60fcc25
treedc7b1a5e532bc9047d5a8eaf150e34f9a0afd842
parent4dea59847aca42dfa0893bc1f13ce05dc3011aaf
Bug 5600 follow-up: Fix commandline check in order to work under Plack

With plackup, @ARGV can contains elements so we can't check the size of
@ARGV to tell whether we are in command line mode or not.
Instead we check environment variable GATEWAY_INTERFACE.

Also fix the use of a global variable in a subroutine

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
tools/export.pl