]> git.koha-community.org Git - koha.git/commit
Bug 15182: Conditionally load Koha::NorwegianPatronDB
authorDavid Cook <dcook@prosentient.com.au>
Tue, 17 Nov 2015 01:36:16 +0000 (12:36 +1100)
committerLiz Rea <wizzyrea@gmail.com>
Fri, 11 Dec 2015 01:01:40 +0000 (14:01 +1300)
commitd7c768e98b76d8a33d56a3fdc249681dbf096026
treec47c6582de8d11baf3d2524352a579e850610a3a
parent1f0e4471d268d08bc9cb67508cd7a37581fb4865
Bug 15182: Conditionally load Koha::NorwegianPatronDB

This patch loads Koha::NorwegianPatronDB if it can, or adds a warning
to the log if it can't load it.

Since the Koha::NorwegianPatronDB functionality in C4::Members is
wrapped in system preferences, the loading of the module is
irrelevant unless one actually wants to use the module and its
associated functionality.

NOTE:

This patch fixes a problem where we were getting errors saying
Crypt::GCrypt couldn't be loaded even though it's not a required
dependency.

This patch will likely only affect people not using Debian-based
systems where libcrypt-gcrypt-perl is available. The current
version of Crypt::GCrypt doesn't build so it's not an option
for most non-Debian users to install this not required
dependency in order to work around this issue...

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised for Debian-based systems

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 1801a9462e190231f3303b01247b834f6e1d99bd)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 3b510cee00e5960eff43800d9df978123061b9b6)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
C4/Members.pm