--- loncom/homework/caparesponse/caparesponse.pm 2006/12/19 00:53:57 1.198.2.2 +++ loncom/homework/caparesponse/caparesponse.pm 2006/12/14 04:59:51 1.201 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # caparesponse definition # -# $Id: caparesponse.pm,v 1.198.2.2 2006/12/19 00:53:57 albertel Exp $ +# $Id: caparesponse.pm,v 1.201 2006/12/14 04:59:51 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -40,11 +40,6 @@ BEGIN { } my %answer; -my @answers; -sub get_answer { return %answer; }; -sub push_answer{ push(@answers,dclone(\%answer)); undef(%answer) } -sub pop_answer { %answer = %{pop(@answers)}; }; - my $cur_name; my $tag_internal_answer_name = 'INTERNAL'; @@ -329,11 +324,11 @@ sub check_submission { } if ($tag eq 'formularesponse') { -# if ($$args_ref{'samples'}) { + if ($$args_ref{'samples'}) { $$args_ref{'type'}='fml'; -# } else { -# $$args_ref{'type'}='math'; -# } + } else { + $$args_ref{'type'}='math'; + } } elsif ($tag eq 'numericalresponse') { $$args_ref{'type'}='float'; }