From 2cb5a9e32ede2ffcafda7ab0f84b521239c0eca5 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 3 Jan 2008 18:43:39 -0600 Subject: [PATCH] C4::Circulation - ensure that certain modules always get imported For some reason currently unclear to me, a use 'C4::XXX' does not seem to guarantee that the contents of C4::XXX's @EXPORT gets imported into C4::Circulation's symbol table. Added an INIT block to ensure that this gets done as part of runtime initialization. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Circulation.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index f6505b6472..09cf45f476 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -43,6 +43,22 @@ use C4::Log; # logaction use Data::Dumper; +INIT { + # an ugly hack to ensure that + # various subs get imported + # into C4::Circulation's symbol table + # FIXME: hopefully can remove once + # we get a better idea of exactly + # how Exporter/use/require/import + # should be used with modules + # that currently call functions + # from each other. + import C4::Items; + import C4::Members; + import C4::Reserves; + import C4::Overdues; +} + our ($VERSION,@ISA,@EXPORT,@EXPORT_OK,%EXPORT_TAGS); # set the version for version checking -- 2.39.5