]> git.koha-community.org Git - koha.git/commit
Bug 8818: make sure we load modules before using them
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 25 Sep 2012 23:38:32 +0000 (19:38 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 1 Oct 2012 17:01:50 +0000 (19:01 +0200)
commit813c74400803a5ec26497d9a809cf874d2c200fd
tree624fe0b2c41f557dab7fb47fd45ba4b4c1e6ebde
parent882f4146441f8d0a447a63e4faecf755e33e6c90
Bug 8818: make sure we load modules before using them

An eval { eval "require $module;" }; was replaced with
eval { eval { require $module; }; }; which is a no-op, meaning that
the linker was not getting loaded, and the catalog module was throwing
up a big nasty error every time someone tried to save a record with a
heading. This patch replaces the require with can_load from
Module::Load::Conditional, which is PBP-friendly, and offers equivalent
functionality.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Biblio.pm
misc/link_bibs_to_authorities.pl