--- loncom/homework/default_homework.lcpm 2004/05/27 04:25:13 1.84 +++ loncom/homework/default_homework.lcpm 2004/06/04 22:56:46 1.85 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run() # -# $Id: default_homework.lcpm,v 1.84 2004/05/27 04:25:13 albertel Exp $ +# $Id: default_homework.lcpm,v 1.85 2004/06/04 22:56:46 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -106,17 +106,8 @@ sub caparesponse_check { } } - if ($sig eq '') { - $sig_lbound = 0; #SIG_LB_DEFAULT - $sig_ubound =15; #SIG_UB_DEFAULT - } else { - ($sig_lbound,$sig_ubound) = split /,/,$sig; - if (!defined($sig_lbound)) { - $sig_lbound = 0; #SIG_LB_DEFAULT - $sig_ubound =15; #SIG_UB_DEFAULT - } - if (!defined($sig_ubound)) { $sig_ubound=$sig_lbound; } - } + ($sig_ubound,$sig_lbound)=&LONCAPA_INTERNAL_get_sigrange($sig); + my $reterror=""; my $result = &caparesponse_capa_check_answer($response,$answer,$type, $tol_type,$tol,