--- loncom/homework/hint.pm 2006/12/19 00:49:53 1.66 +++ loncom/homework/hint.pm 2006/12/19 14:53:17 1.67 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # implements the tags that control the hints # -# $Id: hint.pm,v 1.66 2006/12/19 00:49:53 albertel Exp $ +# $Id: hint.pm,v 1.67 2006/12/19 14:53:17 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -178,7 +178,11 @@ sub end_numericalhint { if (lc($hideunit) eq "yes") { delete($$args_ref{'unit'}); } if ($$tagstack[-1] eq 'formulahint') { - $$args_ref{'type'}='fml'; + if ($$args_ref{'samples'}) { + $$args_ref{'type'}='fml'; + } else { + $$args_ref{'type'}='math'; + } } elsif ($$tagstack[-1] eq 'numericalhint') { $$args_ref{'type'}='float'; }