[freeside-commits] freeside/httemplate/edit/process msgcat.cgi, 1.4, 1.5

Erik Levinson levinse at wavetail.420.am
Thu Jun 2 20:27:46 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv8752/httemplate/edit/process

Modified Files:
	msgcat.cgi 
Log Message:
prevent en_US msgcat from being edited, RT12515

Index: msgcat.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/msgcat.cgi,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -d -r1.4 -r1.5
--- msgcat.cgi	13 Jan 2008 21:35:53 -0000	1.4
+++ msgcat.cgi	3 Jun 2011 03:27:44 -0000	1.5
@@ -13,6 +13,7 @@
 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);



More information about the freeside-commits mailing list