--- loncom/xml/lontex.pm 2003/02/14 19:35:55 1.4 +++ loncom/xml/lontex.pm 2005/04/07 06:56:27 1.7 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # TeX Content Handler # -# $Id: lontex.pm,v 1.4 2003/02/14 19:35:55 www Exp $ +# $Id: lontex.pm,v 1.7 2005/04/07 06:56:27 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -45,6 +45,7 @@ use strict; use Apache::File; use Apache::lontexconvert; use Apache::Constants qw(:common); +use Apache::lonnet; use tth; # ================================================================ Main Handler @@ -56,10 +57,10 @@ sub handler { # ----------------------------------------------------------- Set document type - if ($ENV{'browser.mathml'}) { - $r->content_type('text/xml'); + if ($env{'browser.mathml'}) { + &Apache::loncommon::content_type($r,'text/xml'); } else { - $r->content_type('text/html'); + &Apache::loncommon::content_type($r,'text/html'); } $r->send_http_header; @@ -83,7 +84,7 @@ sub handler { '" onUnload="'. &Apache::lonmenu::unloadevents(). '">'. - &Apache::lonmenu::menubuttons(undef,'web') + &Apache::lonmenu::menubuttons(undef,'web',1) ); $r->print(&Apache::lontexconvert::converted(\$texstring)); $r->print('');