summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorlevinse <levinse>2011-06-03 03:27:44 +0000
committerlevinse <levinse>2011-06-03 03:27:44 +0000
commit4038565411fbb2c5f7092fa5a47171d3f3910b3c (patch)
tree31cbfddd7781a913485afe79cc33da4ced46e129 /httemplate/edit
parent186a8210b7160604299f5a7286b9cb0749ced611 (diff)
prevent en_US msgcat from being edited, RT12515
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/process/msgcat.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/httemplate/edit/process/msgcat.cgi b/httemplate/edit/process/msgcat.cgi
index 7175fa2..937fc7c 100644
--- a/httemplate/edit/process/msgcat.cgi
+++ b/httemplate/edit/process/msgcat.cgi
@@ -13,6 +13,7 @@ my $error;
foreach my $param ( grep { /^\d+$/ } $cgi->param ) {
my $old = qsearchs('msgcat', { msgnum=>$param } );
next if $old->msg eq $cgi->param($param); #no need to update identical records
+ die "editing en_US locale is currently disabled" if $old->locale eq 'en_US';
my $new = new FS::msgcat { $old->hash };
$new->msg($cgi->param($param));
$error = $new->replace($old);