--- loncom/xml/lontexconvert.pm 2005/07/05 18:59:03 1.67 +++ loncom/xml/lontexconvert.pm 2006/01/27 23:55:15 1.69 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # TeX Conversion Module # -# $Id: lontexconvert.pm,v 1.67 2005/07/05 18:59:03 albertel Exp $ +# $Id: lontexconvert.pm,v 1.69 2006/01/27 23:55:15 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -137,8 +137,7 @@ ENDCONV $errorstring) { &Apache::lonnet::logthis("Trying to kill myself"); $Apache::lontexconvert::messedup=1; - my $request=Apache->request(); - $request->child_terminate(); + $Apache::lonxml::request->child_terminate(); } return $xmlstring; } @@ -208,11 +207,11 @@ sub mimetex_converted { sub converted { my ($string,$mode)=@_; if ($mode eq '') { $mode=$env{'environment.texengine'}; } - if ($mode eq 'tth') { + if ($mode =~ /tth/i) { return &tth_converted($string); - } elsif ($mode eq 'jsMath') { + } elsif ($mode =~ /jsmath/i) { return &jsMath_converted($string); - } elsif ($mode eq 'mimetex') { + } elsif ($mode =~ /mimetex/i) { return &mimetex_converted($string); } return &tth_converted($string);