[LON-CAPA-cvs] cvs: loncom /interface lonhelp.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 26 Jun 2006 22:22:04 -0000
albertel Mon Jun 26 18:22:04 2006 EDT
Modified files:
/loncom/interface lonhelp.pm
Log:
- tth setup by default now
Index: loncom/interface/lonhelp.pm
diff -u loncom/interface/lonhelp.pm:1.27 loncom/interface/lonhelp.pm:1.28
--- loncom/interface/lonhelp.pm:1.27 Tue May 30 08:46:09 2006
+++ loncom/interface/lonhelp.pm Mon Jun 26 18:22:00 2006
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonhelp.pm,v 1.27 2006/05/30 12:46:09 www Exp $
+# $Id: lonhelp.pm,v 1.28 2006/06/26 22:22:00 albertel Exp $
#
# .tex help system web server handler
#
@@ -191,9 +191,9 @@
my $serverroot = $ENV{'HTTP_HOST'};
&Apache::lonlocal::get_language_handle($r);
+ &Apache::loncommon::content_type($r,"text/html");
my $text='';
if ($env{'form.searchterm'}=~/\w/) {
- &Apache::loncommon::content_type($r,"text/html");
($text,my $matches)=&listmatches($docroot,$env{'form.searchterm'},&Apache::lonlocal::current_language().'/');
if ($matches) {
my ($englishresult,$englishmatches)=&listmatches($docroot,$env{'form.searchterm'});
@@ -233,24 +233,7 @@
or return HTTP_NOT_FOUND;
$tex .= join('', <$file>);
}
-
- if ($env{'browser.mathml'}) {
- &Apache::loncommon::content_type($r,'text/xml');
- &tth::ttminit();
- if ($env{'browser.unicode'}) {
- &tth::ttmoptions('-L -u1');
- } else {
- &tth::ttmoptions('-L -u0');
- }
- } else {
- &Apache::loncommon::content_type($r,"text/html");
- &tth::tthinit();
- if ($env{'browser.unicode'}) {
- &tth::tthoptions('-L -u1');
- } else {
- &tth::tthoptions('-L -u0');
- }
- }
+
$text = &render($tex, $docroot, $serverroot);
}