projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rework discount calculation, #20613, #19173, #19354
[freeside.git]
/
FS
/
FS
/
Msgcat.pm
diff --git
a/FS/FS/Msgcat.pm
b/FS/FS/Msgcat.pm
index
2429805
..
ce0fa78
100644
(file)
--- a/
FS/FS/Msgcat.pm
+++ b/
FS/FS/Msgcat.pm
@@
-58,6
+58,8
@@
our %cache;
sub _gettext {
my $msgcode = shift;
sub _gettext {
my $msgcode = shift;
+ return '' unless defined($msgcode) && length($msgcode) > 0;
+
my $locale = (@_ && shift)
|| $FS::CurrentUser::CurrentUser->option('locale')
|| $def_locale;
my $locale = (@_ && shift)
|| $FS::CurrentUser::CurrentUser->option('locale')
|| $def_locale;
@@
-86,6
+88,7
@@
sub _gettext {
warn "WARNING: auto-inserting message for msgcode $msgcode in locale $locale";
$newmsgcat->insert;
}
warn "WARNING: auto-inserting message for msgcode $msgcode in locale $locale";
$newmsgcat->insert;
}
+ return $msgcode;
}
}
}
}