[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lon-capa-cvs
Subject:    [LON-CAPA-cvs] cvs: loncom /interface lonmsgdisplay.pm
From:       albertel <lon-capa-cvs () mail ! lon-capa ! org>
Date:       2006-04-26 14:43:05
Message-ID: cvsalbertel1146062585 () cvsserver
[Download RAW message or body]

albertel		Wed Apr 26 10:43:05 2006 EDT

  Modified files:              
    /loncom/interface	lonmsgdisplay.pm 
  Log:
  - removing leftover debug lines
  - use the more correcter way to get the dom/num info from a course id
  
  
Index: loncom/interface/lonmsgdisplay.pm
diff -u loncom/interface/lonmsgdisplay.pm:1.18 loncom/interface/lonmsgdisplay.pm:1.19
--- loncom/interface/lonmsgdisplay.pm:1.18	Wed Apr 26 10:10:58 2006
+++ loncom/interface/lonmsgdisplay.pm	Wed Apr 26 10:43:03 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines for messaging display
 #
-# $Id: lonmsgdisplay.pm,v 1.18 2006/04/26 14:10:58 albertel Exp $
+# $Id: lonmsgdisplay.pm,v 1.19 2006/04/26 14:43:03 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1393,12 +1393,9 @@
     # for students.
     return if (!%live_courses);
 
-    &Apache::lonnet::logthis("hmm");
-    &Apache::lonnet::logthis(join(" ",%live_courses));
-    &Apache::lonnet::logthis(join(" ",%staff_of));
-
     foreach my $course (keys(%live_courses)) {
-	my ($cdom,$cnum) = split(/_/,$course);
+	my $cdom = $env{'course.'.$course.'.domain'};
+	my $cnum = $env{'course.'.$course.'.num'};
 
 	# if they are a staff member and are currently not playing student
 	next if ( $staff_of{$course} 


_______________________________________________
LON-CAPA-cvs mailing list
LON-CAPA-cvs@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic