version 1.42, 2008/12/15 16:37:44
|
version 1.44, 2008/12/22 14:39:23
|
Line 306 sub handler {
|
Line 306 sub handler {
|
my ($blocked,$blocktext,$disabled,$disabletext); |
my ($blocked,$blocktext,$disabled,$disabletext); |
if (!&Apache::lonnet::is_course($udom,$uname)) { |
if (!&Apache::lonnet::is_course($udom,$uname)) { |
($blocked,$blocktext) = &blocking_blogdisplay($uname,$udom,$html,$filterfeedname); |
($blocked,$blocktext) = &blocking_blogdisplay($uname,$udom,$html,$filterfeedname); |
$disabled = &Apache::lonnet::usertools_access($uname,$udom,'blog'); |
if (&Apache::lonnet::usertools_access($uname,$udom,'blog')) { |
if ($disabled) { |
$disabled = 0; |
|
} else { |
|
$disabled = 1; |
if ($html) { |
if ($html) { |
$disabletext = '<h2>'.&mt('No user blog available') .'</h2>'. |
$disabletext = '<h2>'.&mt('No user blog available') .'</h2>'. |
&mt('This is a result of one of the following:').'<ul>'. |
&mt('This is a result of one of the following:').'<ul>'. |