http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11401
--- Comment #18 from Magnus Enger <[email protected]> --- (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. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
