--- loncom/interface/lonerrorhandler.pm 2005/07/08 21:21:56 1.8 +++ loncom/interface/lonerrorhandler.pm 2006/03/19 22:34:30 1.9 @@ -1,7 +1,7 @@ # The LearningOnline Network # Internal Server Error Handler # -# $Id: lonerrorhandler.pm,v 1.8 2005/07/08 21:21:56 www Exp $ +# $Id: lonerrorhandler.pm,v 1.9 2006/03/19 22:34:30 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -42,15 +42,9 @@ sub handler { &Apache::loncommon::get_posted_cgi($r); - my $html=&Apache::lonxml::xmlbegin(); - my $bodytag=&Apache::loncommon::bodytag($env{'form.sendinfo'}?'Sending Error Report':'Could Not Process Request'); - $r->print(< -The LearningOnline Network with CAPA - -$bodytag -ENDHEADER + my $title = $env{'form.sendinfo'} ? 'Sending Error Report' + : 'Could Not Process Request'; + $r->print(&Apache::loncommon::start_page($title)); if ($env{'form.sendinfo'}) { my $repro='no'; @@ -132,10 +126,10 @@ Internal info: $syllabus - - ENDDOCUMENT + $r->print(&Apache::loncommon::end_page()); # -------------------------- Better terminate this in case something was sticky + $r->child_terminate(); } return OK;