[LON-CAPA-cvs] cvs: rat / lonuserstate.pm
www
lon-capa-cvs@mail.lon-capa.org
Thu, 27 Jun 2002 14:08:26 -0000
www Thu Jun 27 10:08:26 2002 EDT
Modified files:
/rat lonuserstate.pm
Log:
Put randomout into %ENV
Index: rat/lonuserstate.pm
diff -u rat/lonuserstate.pm:1.31 rat/lonuserstate.pm:1.32
--- rat/lonuserstate.pm:1.31 Thu Jun 27 09:21:04 2002
+++ rat/lonuserstate.pm Thu Jun 27 10:08:26 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construct and maintain state and binary representation of course for user
#
-# $Id: lonuserstate.pm,v 1.31 2002/06/27 13:21:04 www Exp $
+# $Id: lonuserstate.pm,v 1.32 2002/06/27 14:08:26 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -436,7 +436,13 @@
for (my $k=0; $k<=$#currentrids; $k++) {
if ($currentrids[$k]) {
$hash{'randomout_'.$currentrids[$k]}=1;
- $randomoutentry.='&'.$currentrids[$k].'&';
+ my ($mapid,$resid)=split(/\./,$currentrids[$k]);
+ $randomoutentry.='&'.
+ &Apache::lonnet::symbclean(
+ &Apache::lonnet::declutter($hash{'map_id_'.$mapid}).
+ '___'.$resid.'___'.
+ &Apache::lonnet::declutter($hash{'src_'.$currentrids[$k]})
+ ).'&';
}
}
}