--- loncom/interface/lonfeedback.pm 2004/06/02 16:47:33 1.87
+++ loncom/interface/lonfeedback.pm 2004/06/03 20:06:15 1.89
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Feedback
#
-# $Id: lonfeedback.pm,v 1.87 2004/06/02 16:47:33 www Exp $
+# $Id: lonfeedback.pm,v 1.89 2004/06/03 20:06:15 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -39,11 +39,15 @@ use Apache::lonhtmlcommon();
sub list_discussion {
my ($mode,$status,$symb)=@_;
-# &Apache::lonnet::logthis("status is $status");
+
if (!($status eq 'CAN_ANSWER' || $status eq 'CANNOT_ANSWER'
|| $status eq 'OPEN')) {
return '';
}
+ my $close=&Apache::lonnet::EXT('resource.0.discussend');
+ if (defined($close) && $close ne '' && $close < time) {
+ return ''
+ }
my @bgcols = ("#cccccc","#eeeeee");
my $discussiononly=0;
@@ -412,7 +416,7 @@ sub list_discussion {
Note: in anonymous discussion, your name is visible only to
course faculty
Title:
-
+
Attachment (128 KB max size):
@@ -675,14 +679,17 @@ sub resource_output { sub clear_out_html { my ($message,$override)=@_; + unless (&Apache::lonhtmlcommon::htmlareablocked()) { return $message; } my $cid=$ENV{'request.course.id'}; if (($ENV{"course.$cid.allow_limited_html_in_feedback"} =~ m/yes/i) || ($override)) { # allows