version 1.53.2.5, 2021/12/14 03:22:21
|
version 1.62, 2022/01/20 00:06:16
|
Line 291 sub blocking_blogdisplay {
|
Line 291 sub blocking_blogdisplay {
|
if ($showdom eq '') { |
if ($showdom eq '') { |
$showdom = $blockdom; |
$showdom = $blockdom; |
} |
} |
$output .= &mt('This restriction was set by an administrator in the [_1] LON-CAPA domain',$showdom); |
$output .= &mt('This restriction was set by an administrator in the [_1] LON-CAPA domain.',$showdom); |
} else { |
} else { |
$output .= &mt('This is because the blog owner is a student in one or more courses in which communication is being blocked.'); |
$output .= &mt('This is because the blog owner is a student in one or more courses in which communication is being blocked.'); |
} |
} |
Line 337 sub handler {
|
Line 337 sub handler {
|
my ($displayfeedname,$displayoption)=&displayfeedname($filename,$uname,$udom); |
my ($displayfeedname,$displayoption)=&displayfeedname($filename,$uname,$udom); |
my ($blocked,$blocktext,$disabled,$disabletext); |
my ($blocked,$blocktext,$disabled,$disabletext); |
if (!&Apache::lonnet::is_course($udom,$uname)) { |
if (!&Apache::lonnet::is_course($udom,$uname)) { |
my $clientip = &Apache::lonnet::get_requestor_ip($r); |
my $clientip = &Apache::lonnet::get_requestor_ip($r); |
($blocked,$blocktext) = &blocking_blogdisplay($uname,$udom,$html,$filterfeedname,$clientip); |
($blocked,$blocktext) = &blocking_blogdisplay($uname,$udom,$html,$filterfeedname,$clientip); |
if (&Apache::lonnet::usertools_access($uname,$udom,'blog')) { |
if (&Apache::lonnet::usertools_access($uname,$udom,'blog')) { |
$disabled = 0; |
$disabled = 0; |