--- loncom/interface/portfolio.pm 2006/03/03 23:27:25 1.94 +++ loncom/interface/portfolio.pm 2006/03/15 19:41:26 1.95 @@ -681,7 +681,7 @@ sub handler { $r->send_http_header; # Give the LON-CAPA page header my $html=&Apache::lonxml::xmlbegin(); - $r->print($html.''.$title."\n"); + $r->print($html.&Apache::loncommon::head($title)."\n"); if ($env{"form.mode"} eq 'selectfile'){ $r->print(&Apache::loncommon::bodytag($title,undef,undef,1)); } else { @@ -749,7 +749,7 @@ sub handler { my $is_empty=(@dir_list == 2); &display_common($r,$url,$current_path,$is_empty,\@dir_list,$group); &display_directory($r,$url,$current_path,$is_empty,\@dir_list,$group); - $r->print("\n\n"); + $r->print(&Apache::loncommon::end_page()); } return OK; }