--- loncom/interface/londocs.pm 2012/04/08 22:34:58 1.481 +++ loncom/interface/londocs.pm 2012/04/16 19:31:57 1.482 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.481 2012/04/08 22:34:58 raeburn Exp $ +# $Id: londocs.pm,v 1.482 2012/04/16 19:31:57 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2432,10 +2432,11 @@ sub handler { my $docuname=$env{'course.'.$env{'request.course.id'}.'.num'}; my $docudom=$env{'course.'.$env{'request.course.id'}.'.domain'}; my ($destination,$dir_root) = &embedded_destination(); - $r->print(&Apache::loncommon::modify_html_refs('coursedoc',$destination, - $docuname,$docudom,undef, - $dir_root). - &return_to_editor()); + my $result = + &Apache::loncommon::modify_html_refs('coursedoc',$destination, + $docuname,$docudom,undef, + $dir_root); + $r->print($result.&return_to_editor()); } elsif ($env{'form.phase'} eq 'decompress_uploaded') { $uploadphase = 'decompress_phase_one'; $r->print(&decompression_phase_one().