[LON-CAPA-cvs] cvs: loncom /interface lonmsgdisplay.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 26 Apr 2006 14:43:05 -0000
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}