21 Oct
2014
21 Oct
'14
8:56 a.m.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11401 --- Comment #18 from Magnus Enger <magnus@enger.priv.no> --- (In reply to Chris Cormack from comment #8)
The only suggestion I have is that we could perhaps use Module::Load::Conditional in C4/Members.pm, so that we don't have to load the module unless we need it.
It looks like Module::Load::Conditional can't take a list of subs to import, so I went with Module::Load (which is already used a couple of places in Koha) instead, e.g.: use Module::Load; if ( C4::Context->preference('NorwegianPatronDBEnable') == 1 ) { load Koha::NorwegianPatronDB, qw( NLMarkForDeletion NLSync ); } -- You are receiving this mail because: You are watching all bug changes.