--- loncom/interface/lonerrorhandler.pm 2008/08/19 11:22:00 1.15 +++ loncom/interface/lonerrorhandler.pm 2008/12/12 23:03:04 1.21 @@ -1,7 +1,7 @@ # The LearningOnline Network # Internal Server Error Handler # -# $Id: lonerrorhandler.pm,v 1.15 2008/08/19 11:22:00 bisitz Exp $ +# $Id: lonerrorhandler.pm,v 1.21 2008/12/12 23:03:04 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -26,6 +26,8 @@ # http://www.lon-capa.org/ # + + package Apache::lonerrorhandler; use strict; @@ -43,7 +45,9 @@ sub handler { return OK if $r->header_only; &Apache::lonacc::get_posted_cgi($r); - + if (!$Apache::lonlocal::lh) { + &Apache::lonlocal::get_language_handle($r); + } my $title = $env{'form.sendinfo'} ? 'Sending Error Report' : 'Could Not Process Request'; $r->print(&Apache::loncommon::start_page($title)); @@ -140,7 +144,7 @@ ENDMESSAGE

- +

'.&mt('Thank you for your help!').'

@@ -161,3 +165,23 @@ $syllabus.' 1; __END__ + + +=pod + +=head1 NAME + +Apache::lonerrorhandler.pm + +=head1 SYNOPSIS + +Handles errors. + +This is part of the LearningOnline Network with CAPA project +described at http://www.lon-capa.org. + +=head1 OVERVIEW + +None + +=cut