version 1.248, 2009/11/23 14:04:37
|
version 1.251, 2009/11/30 06:32:26
|
Line 232 sub select_recent {
|
Line 232 sub select_recent {
|
unless ($value =~/^error\:/) { |
unless ($value =~/^error\:/) { |
my $escaped = &Apache::loncommon::escape_url($value); |
my $escaped = &Apache::loncommon::escape_url($value); |
&Apache::loncommon::inhibit_menu_check(\$escaped); |
&Apache::loncommon::inhibit_menu_check(\$escaped); |
|
if ($area eq 'residx') { |
|
next if ((!&Apache::lonnet::allowed('bre',$value)) && (!&Apache::lonnet::allowed('bro',$value))); |
|
} |
$return.="\n<option value='$escaped'>". |
$return.="\n<option value='$escaped'>". |
&unescape((split(/\&/,$recent{$value}))[1]). |
&unescape((split(/\&/,$recent{$value}))[1]). |
'</option>'; |
'</option>'; |
Line 1138 sub crumbs {
|
Line 1141 sub crumbs {
|
my $output=''; |
my $output=''; |
unless ($noformat) { $output.='<br /><tt><b>'; } |
unless ($noformat) { $output.='<br /><tt><b>'; } |
$output.='<font size="'.$size.'">'.$prefix.'/'; |
$output.='<font size="'.$size.'">'.$prefix.'/'; |
if (($env{'user.adv'}) | ($env{'user.author'})) { |
if (($env{'user.adv'}) || ($env{'user.author'})) { |
my $path=$prefix.'/'; |
my $path=$prefix.'/'; |
foreach my $dir (split('/',$uri)) { |
foreach my $dir (split('/',$uri)) { |
if (! $dir) { next; } |
if (! $dir) { next; } |
Line 1501 returns: nothing
|
Line 1504 returns: nothing
|
$item =~ s/<span(.*?)\/span>//; |
$item =~ s/<span(.*?)\/span>//; |
$html .= "<li>$item</li>"; |
$html .= "<li>$item</li>"; |
} |
} |
$html .= '</li></ul>'; |
$html .= '</ul></li>'; |
if ($category eq 'A') { $html .= "<li>$$links</li>"; } |
if ($category eq 'A') { $html .= "<li>$$links</li>"; } |
} |
} |
$$links = $html.'</ul>'; |
$$links = $html.'</ul>'; |