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

raeburn raeburn@source.lon-capa.org
Tue, 11 Jan 2011 22:01:10 -0000


raeburn		Tue Jan 11 22:01:10 2011 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - auto_new_course() has an additional arg - $coowners.
  - $owner and $coowners passed to localenroll:new_course() via lond to
    update gatekeeper database tables controlling access to institutional
    rosters.  
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1098 loncom/lonnet/perl/lonnet.pm:1.1099
--- loncom/lonnet/perl/lonnet.pm:1.1098	Tue Jan 11 10:51:48 2011
+++ loncom/lonnet/perl/lonnet.pm	Tue Jan 11 22:01:09 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1098 2011/01/11 10:51:48 foxr Exp $
+# $Id: lonnet.pm,v 1.1099 2011/01/11 22:01:09 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -6025,9 +6025,9 @@
 }
 
 sub auto_new_course {
-    my ($cnum,$cdom,$inst_course_id,$owner) = @_;
+    my ($cnum,$cdom,$inst_course_id,$owner,$coowners) = @_;
     my $homeserver = &homeserver($cnum,$cdom);
-    my $response=&unescape(&reply('autonewcourse:'.$inst_course_id.':'.$owner.':'.$cdom,$homeserver));
+    my $response=&unescape(&reply('autonewcourse:'.$inst_course_id.':'.&escape($owner).':'.$cdom.':'.&escape($coowners),$homeserver));
     return $response;
 }