--- loncom/interface/lonfeedback.pm 2001/10/01 19:24:49 1.16
+++ loncom/interface/lonfeedback.pm 2001/11/06 11:55:11 1.18
@@ -15,7 +15,7 @@
# 2/13 Guy Albertelli
# 7/25 Gerd Kortemeyer
# 7/26 Guy Albertelli
-# 7/26,8/10,10/1 Gerd Kortemeyer
+# 7/26,8/10,10/1,11/5,11/6 Gerd Kortemeyer
package Apache::lonfeedback;
@@ -263,11 +263,22 @@ sub send_msg {
'Feedback '.$feedurl,$email,$citations) eq 'ok') {
$status.='
Error sending message to '.$_.'
';
} else {
- #$status.='
Message sent to '.$_.'
';
$sendsomething++;
}
}
- } keys %to;
+ } keys %to;
+
+ my %record=&Apache::lonnet::restore('_feedback');
+ my ($temp)=keys %record;
+ unless ($temp=~/^error\:/) {
+ my %newrecord=();
+ $newrecord{'resource'}=$feedurl;
+ $newrecord{'subnumber'}=$record{'subnumber'}+1;
+ unless (&Apache::lonnet::cstore(\%newrecord,'_feedback') eq 'ok') {
+ $status.='
Not registered
';
+ }
+ }
+
return ($status,$sendsomething);
}
@@ -284,10 +295,17 @@ sub adddiscuss {
$status='Adding to class discussion'.($anon?' (anonymous)':'').': '.
&Apache::lonnet::store(\%contrib,$symb,$ENV{'request.course.id'},
$ENV{'course.'.$ENV{'request.course.id'}.'.domain'},
- $ENV{'course.'.$ENV{'request.course.id'}.'.num'}).
- '
';
+ $ENV{'course.'.$ENV{'request.course.id'}.'.num'});
+ }
+ my %record=&Apache::lonnet::restore('_discussion');
+ my ($temp)=keys %record;
+ unless ($temp=~/^error\:/) {
+ my %newrecord=();
+ $newrecord{'resource'}=$symb;
+ $newrecord{'subnumber'}=$record{'subnumber'}+1;
+ $status.=' '.&Apache::lonnet::cstore(\%newrecord,'_discussion');
}
- return $status;
+ return $status.'
';
}
sub handler {