[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Thu, 15 May 2003 13:32:55 -0000
sakharuk Thu May 15 09:32:55 2003 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
Changes in the get_student_answers subroutine to print students assignments with answers.
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.99 loncom/interface/loncommon.pm:1.100
--- loncom/interface/loncommon.pm:1.99 Mon May 12 20:52:46 2003
+++ loncom/interface/loncommon.pm Thu May 15 09:32:55 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.99 2003/05/13 00:52:46 www Exp $
+# $Id: loncommon.pm,v 1.100 2003/05/15 13:32:55 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1512,7 +1512,7 @@
}
sub get_student_answers {
- my ($symb,$username,$domain,$courseid) = @_;
+ my ($symb,$username,$domain,$courseid,%form) = @_;
my ($map,$id,$feedurl) = split(/___/,$symb);
my (%old,%moreenv);
my @elements=('symb','courseid','domain','username');
@@ -1522,7 +1522,7 @@
}
$moreenv{'form.grade_target'}='answer';
&Apache::lonnet::appenv(%moreenv);
- my $userview=&Apache::lonnet::ssi('/res/'.$feedurl);
+ my $userview=&Apache::lonnet::ssi('/res/'.$feedurl,%form);
&Apache::lonnet::delenv('form.grade_');
foreach my $element (@elements) {
$ENV{'form.grade_'.$element}=$old{$element};