RT# 79780 - added a 60 second pause when there is a connection failure, then retry...
[freeside.git] / FS / FS / Msgcat.pm
index 1978aa7..e1bde8b 100644 (file)
@@ -62,7 +62,7 @@ sub _gettext {
   return '' unless defined($msgcode) && length($msgcode) > 0;
 
   my $locale =  (@_ && shift)
-             || $FS::CurrentUser::CurrentUser->option('locale')
+             || $FS::CurrentUser::CurrentUser->locale
              || $def_locale;
 
   return $cache{$locale}->{$msgcode} if exists $cache{$locale}->{$msgcode};