--- loncom/interface/lonhelper.pm 2004/04/20 15:08:26 1.69 +++ loncom/interface/lonhelper.pm 2004/04/21 17:29:57 1.71 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.69 2004/04/20 15:08:26 sakharuk Exp $ +# $Id: lonhelper.pm,v 1.71 2004/04/21 17:29:57 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -263,8 +263,13 @@ sub real_handler { # Send header, don't cache this page - - if (&Apache::lonhomework::setupheader($r)) { return OK; } + if ($ENV{'browser.mathml'}) { + &Apache::loncommon::content_type($r,'text/xml'); + } else { + &Apache::loncommon::content_type($r,'text/html'); + } + $r->send_http_header; + return OK if $r->header_only; $r->rflush(); # Discard result, we just want the objects that get created by the @@ -3152,12 +3157,12 @@ sub render { $result .= '

'.&mt('Confirm that this information is correct, then click "Finish Helper" to complete setting the parameter.').'