From: ivan Date: Wed, 18 Jun 2008 00:42:31 +0000 (+0000) Subject: REALLY, don't use FS::Conf from Msgcat until runtime... should hopefully FINALLY... X-Git-Tag: root_of_webpay_support~558 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=e2f0cb2fe64f6e18572f42f574ff4aa881d57b20 REALLY, don't use FS::Conf from Msgcat until runtime... should hopefully FINALLY eliminate the Record->Msgcat->Conf->Record loop --- diff --git a/FS/FS/Msgcat.pm b/FS/FS/Msgcat.pm index 771615727..70933b238 100644 --- a/FS/FS/Msgcat.pm +++ b/FS/FS/Msgcat.pm @@ -13,7 +13,7 @@ use FS::msgcat; @EXPORT_OK = qw( gettext geterror ); FS::UID->install_callback( sub { - eval { use FS::Conf; }; + eval "use FS::Conf;"; die $@ if $@; $conf = new FS::Conf; $locale = $conf->config('locale') || 'en_US';