projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
186a821
)
prevent en_US msgcat from being edited, RT12515
author
levinse
<levinse>
Fri, 3 Jun 2011 03:27:44 +0000
(
03:27
+0000)
committer
levinse
<levinse>
Fri, 3 Jun 2011 03:27:44 +0000
(
03:27
+0000)
httemplate/edit/process/msgcat.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/msgcat.cgi
b/httemplate/edit/process/msgcat.cgi
index
7175fa2
..
937fc7c
100644
(file)
--- 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);