[LON-CAPA-cvs] cvs: loncom(GCI_1) /interface domainprefs.pm

raeburn raeburn@source.lon-capa.org
Mon, 14 Sep 2009 15:59:10 -0000


raeburn		Mon Sep 14 15:59:10 2009 EDT

  Modified files:              (Branch: GCI_1)
    /loncom/interface	domainprefs.pm 
  Log:
  - 'gci' is an allowed language for the GCI custom version of LON-CAPA. 
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.76.4.1 loncom/interface/domainprefs.pm:1.76.4.2
--- loncom/interface/domainprefs.pm:1.76.4.1	Mon Sep 14 15:47:17 2009
+++ loncom/interface/domainprefs.pm	Mon Sep 14 15:59:10 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.76.4.1 2009/09/14 15:47:17 raeburn Exp $
+# $Id: domainprefs.pm,v 1.76.4.2 2009/09/14 15:59:10 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4588,8 +4588,10 @@
             if ($newvalues{$item} ne '') {
                 if ($newvalues{$item} =~ /^(\w+)/) {
                     my $langcode = $1;
-                    if (code2language($langcode) eq '') {
-                        push(@errors,$item);
+                    if ($langcode ne 'gci' && $langcode ne 'x_chef') {
+                        if (code2language($langcode) eq '') {
+                            push(@errors,$item);
+                        }
                     }
                 } else {
                     push(@errors,$item);