--- loncom/homework/structuretags.pm 2006/04/14 21:42:05 1.345 +++ loncom/homework/structuretags.pm 2006/04/15 01:06:59 1.346 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.345 2006/04/14 21:42:05 albertel Exp $ +# $Id: structuretags.pm,v 1.346 2006/04/15 01:06:59 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -596,7 +596,6 @@ sub start_problem { my $status; my $accessmsg; - #should get back a or the neccesary stuff to start XML/MathML my $name= &get_resource_name($parstack,$safeeval); my ($result,$form_tag_start)= &page_start($target,$token,$tagstack,$parstack,$parser,$safeeval, @@ -865,7 +864,7 @@ sub end_problem { $result.=&Apache::lonhtmlcommon::htmlareaselectactive(@Apache::lonxml::htmlareafields); } if ($target eq 'web') { - $result.=&Apache::lonxml::xmlend().''; + $result.= &Apache::loncommon::end_page({'discussion' => 1}); } elsif ($target eq 'tex') { my $endminipage = ''; if (not $env{'form.problem_split'}=~/yes/) { @@ -890,7 +889,7 @@ sub end_problem { } if ($target eq 'answer' && ($env{'request.state'} eq 'construct') && $env{'form.answer_output_mode'} ne 'tex') { - $result.=&Apache::lonxml::xmlend().''; + $result.=&Apache::loncommon::end_page({'discussion' => 1}); # normally we get it from above, but in CSTR # we always show answer mode too. }