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

www lon-capa-cvs@mail.lon-capa.org
Mon, 31 Mar 2003 20:53:39 -0000


www		Mon Mar 31 15:53:39 2003 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  Log the existance of a new course immediately when it is made.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.357 loncom/lonnet/perl/lonnet.pm:1.358
--- loncom/lonnet/perl/lonnet.pm:1.357	Mon Mar 31 15:31:39 2003
+++ loncom/lonnet/perl/lonnet.pm	Mon Mar 31 15:53:39 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.357 2003/03/31 20:31:39 www Exp $
+# $Id: lonnet.pm,v 1.358 2003/03/31 20:53:39 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2844,6 +2844,11 @@
 	return 'error: no such course';
     }
 # ----------------------------------------------------------------- Course made
+# log existance
+    &courseidput($udom,&escape($udom.'_'.$uname).'='.&escape($description),
+                 $uhome);
+    &flushcourselogs();
+# set toplevel url
     my $topurl=$url;
     unless ($nonstandard) {
 # ------------------------------------------ For standard courses, make top url