Bug 11730: ensure that C4::Charset loads C4::Context
authorStéphane Delaune <stephane.delaune@biblibre.com>
Mon, 10 Feb 2014 09:52:59 +0000 (10:52 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 18 Feb 2014 21:52:21 +0000 (21:52 +0000)
C4::Charset::SetMarcUnicodeFlag() fetches system preference
values, so since it invokes routines in C4::Context, it should
load the module.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Charset.pm

index 2968b5e..acad92a 100644 (file)
@@ -22,6 +22,7 @@ use warnings;
 
 use MARC::Charset qw/marc8_to_utf8/;
 use Text::Iconv;
+use C4::Context;
 use C4::Debug;
 use Unicode::Normalize;