[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 18 Apr 2005 22:39:35 -0000


albertel		Mon Apr 18 18:39:35 2005 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - style police
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.287 loncom/homework/structuretags.pm:1.288
--- loncom/homework/structuretags.pm:1.287	Mon Apr 18 18:35:52 2005
+++ loncom/homework/structuretags.pm	Mon Apr 18 18:39:35 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.287 2005/04/18 22:35:52 albertel Exp $
+# $Id: structuretags.pm,v 1.288 2005/04/18 22:39:35 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -349,7 +349,8 @@
     my ($symb,$courseid) = @_;
     my %aggregate;
     my @parts;
-    my ($cdomain,$cname) = split(/_/,$courseid);
+    my $cdomain = $env{'course.'.$env{'request.course.id'}.'.domain'};
+    my $cname = $env{'course.'.$env{'request.course.id'}.'.num'};
     foreach my $key (keys(%Apache::lonhomework::results)) {
         if ($key =~ /resource\.([^\.]+)\.tries/) {
             push(@parts, $1);