diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-02-09 22:27:05 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-02-09 22:27:05 -0800 |
commit | 2b5ed545b9bbd4186bcc9bdf24515ee17394691f (patch) | |
tree | 4fae6400bb313ad4d988ff24f626d898625202fc /FS/FS/Msgcat.pm | |
parent | b06cbe907c8b7b655db21ca547b46f9f0241a443 (diff) |
optimize Reports->Customers->List Customers, RT#20173
Diffstat (limited to 'FS/FS/Msgcat.pm')
-rw-r--r-- | FS/FS/Msgcat.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Msgcat.pm b/FS/FS/Msgcat.pm index ce0fa78..b6f36bf 100644 --- a/FS/FS/Msgcat.pm +++ b/FS/FS/Msgcat.pm @@ -61,7 +61,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}; |