[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn raeburn at source.lon-capa.org
Thu May 21 19:10:58 EDT 2015


raeburn		Thu May 21 23:10:58 2015 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Course default (applies to all courses), which can be overridden
    by course settings in a specific course, for who, besides owner
    and coordinator(s) may clone a course.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1285 loncom/lonnet/perl/lonnet.pm:1.1286
--- loncom/lonnet/perl/lonnet.pm:1.1285	Wed May 13 20:38:31 2015
+++ loncom/lonnet/perl/lonnet.pm	Thu May 21 23:10:57 2015
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1285 2015/05/13 20:38:31 raeburn Exp $
+# $Id: lonnet.pm,v 1.1286 2015/05/21 23:10:57 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2101,6 +2101,16 @@
                 }
             }
         }
+        if (ref($domconfig{'coursedefaults'}{'canclone'}) eq 'HASH') {
+            if (ref($domconfig{'coursedefaults'}{'canclone'}{'instcode'}) eq 'ARRAY') {
+                my @clonecodes = @{$domconfig{'coursedefaults'}{'canclone'}{'instcode'}};
+                if (@clonecodes) {
+                    $domdefaults{'canclone'} = join('+', at clonecodes);
+                }
+            }
+        } elsif ($domconfig{'coursedefaults'}{'canclone'}) {
+            $domdefaults{'canclone'}=$domconfig{'coursedefaults'}{'canclone'};
+        }
     }
     if (ref($domconfig{'usersessions'}) eq 'HASH') {
         if (ref($domconfig{'usersessions'}{'remote'}) eq 'HASH') {




More information about the LON-CAPA-cvs mailing list