--- loncom/interface/lonnavmaps.pm 2003/09/17 21:29:44 1.230 +++ loncom/interface/lonnavmaps.pm 2003/09/24 15:02:34 1.233 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavmaps.pm,v 1.230 2003/09/17 21:29:44 www Exp $ +# $Id: lonnavmaps.pm,v 1.233 2003/09/24 15:02:34 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -107,9 +107,9 @@ sub real_handler { # Handle header-only request if ($r->header_only) { if ($ENV{'browser.mathml'}) { - $r->content_type('text/xml'); + &Apache::loncommon::content_type($r,'text/xml'); } else { - $r->content_type('text/html'); + &Apache::loncommon::content_type($r,'text/html'); } $r->send_http_header; return OK; @@ -117,9 +117,9 @@ sub real_handler { # Send header, don't cache this page if ($ENV{'browser.mathml'}) { - $r->content_type('text/xml'); + &Apache::loncommon::content_type($r,'text/xml'); } else { - $r->content_type('text/html'); + &Apache::loncommon::content_type($r,'text/html'); } &Apache::loncommon::no_cache($r); $r->send_http_header; @@ -432,7 +432,7 @@ sub timeToHumanString { if (!$time) { return &mt('never'); } - unless (&Apache::loncommon::current_language()=~/^en/) { + unless (&Apache::lonlocal::current_language()=~/^en/) { return localtime($time); } my $now = time(); @@ -3629,8 +3629,7 @@ sub extractParts { my @otherChunks = @partChunks[$i+1..$#partChunks]; my $responseId = join('_', @otherChunks); push @{$responseIdHash{$partIdSoFar}}, $responseId; - $responseTypeHash{$partIdSoFar} = $responseType; - last; + push @{$responseTypeHash{$partIdSoFar}}, $responseType; } } }