--- rat/lonwrapper.pm 2012/11/27 23:45:15 1.42 +++ rat/lonwrapper.pm 2012/11/29 20:13:49 1.43 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Wrapper for external and binary files as standalone resources # -# $Id: lonwrapper.pm,v 1.42 2012/11/27 23:45:15 raeburn Exp $ +# $Id: lonwrapper.pm,v 1.43 2012/11/29 20:13:49 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -126,20 +126,12 @@ sub handler { return OK; } elsif ($env{'form.folderpath'} =~ /^supplemental/) { my $crstype = &Apache::loncommon::course_type(); - $brcrum = - &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$env{'form.title'},1); - if (ref($brcrum) eq 'ARRAY') { - my $last = $env{'form.title'}; - if ($last eq '') { - $last = &mt('External Resource'); - } - push(@{$brcrum}, - {'title' => $last, - 'text' => $last, - 'no_mt' => 1, - }); - + my $title = $env{'form.title'}; + if ($title eq '') { + $title = &mt('External Resource'); } + $brcrum = + &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); } }