--- rat/lonambiguous.pm 2003/04/12 15:43:58 1.9 +++ rat/lonambiguous.pm 2003/09/22 03:02:06 1.10 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to resolve ambiguous file locations # -# $Id: lonambiguous.pm,v 1.9 2003/04/12 15:43:58 www Exp $ +# $Id: lonambiguous.pm,v 1.10 2003/09/22 03:02:06 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -38,6 +38,7 @@ use Apache::lonnet; use Apache::Constants qw(:common REDIRECT); use GDBM_File; use Apache::loncommon; +use Apache::lonlocal; my %bighash; @@ -54,6 +55,7 @@ sub cleanup { sub getlost { my ($r,$errmsg)=@_; + $errmsg=&mt($errmsg); $r->content_type('text/html'); $r->send_http_header; $r->print( @@ -69,7 +71,7 @@ sub handler { my $r=shift; if ($r->header_only) { - $r->content_type('text/html'); + &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; return OK; }