--- loncom/interface/lonfeedback.pm 2021/10/18 22:29:20 1.385
+++ loncom/interface/lonfeedback.pm 2021/12/31 20:34:24 1.387
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Feedback
#
-# $Id: lonfeedback.pm,v 1.385 2021/10/18 22:29:20 raeburn Exp $
+# $Id: lonfeedback.pm,v 1.387 2021/12/31 20:34:24 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -136,27 +136,29 @@ sub list_discussion {
}
}
- my ($blocked,$blocktext) =
- &Apache::loncommon::blocking_status('boards');
- if ($blocked) {
- $blocktext = '
'.$blocktext."";
- &Apache::lonenc::check_encrypt(\$ressymb);
- if ($mode ne 'board') {
- ($nofooter,$nodisclink,$nofdbklink) = &check_menucoll();
- unless ($nofooter || $nofdbklink) {
- $blocktext.=&send_message_link($ressymb);
- }
- $blocktext.='
';
- }else{
- $blocktext.="";
- }
- return $blocktext;
- }
-
unless ($outputtarget eq 'export') {
($nofooter,$nodisclink,$nofdbklink) = &check_menucoll();
}
+ unless ($nofooter) {
+ my ($blocked,$blocktext) =
+ &Apache::loncommon::blocking_status('boards');
+ if ($blocked) {
+ my $footer = '
';
+ unless ($nodisclink) {
+ $footer .= ''.$blocktext.'';
+ }
+ &Apache::lonenc::check_encrypt(\$ressymb);
+ if ($mode ne 'board') {
+ unless ($nofdbklink) {
+ $footer.=&send_message_link($ressymb);
+ }
+ }
+ $footer.='
';
+ return $footer;
+ }
+ }
+
my @bgcols = ("LC_disc_old_item","LC_disc_new_item");
my $discussiononly=0;
if ($mode eq 'board') { $discussiononly=1; }
@@ -4599,7 +4601,7 @@ ENDREDIR
||
($env{'request.course.id'} && ($symb=~/^bulletin\_\_\_/))
||
- (($env{'request.course.id'} && ($feedurl =~ /ext\.tool$/)))
+ (($env{'request.course.id'}) && ($feedurl =~ /ext\.tool$/))
) {
&Apache::loncommon::content_type($r,'text/html');
$r->send_http_header;