--- loncom/homework/hint.pm 2001/03/31 00:35:17 1.9 +++ loncom/homework/hint.pm 2001/04/05 00:08:40 1.10 @@ -15,7 +15,7 @@ sub start_hintgroup { my $skiptoend='0'; my $result; - if ($target eq 'web' || $target eq 'grade') { + if ($target eq 'web') { my $id=$Apache::inputtags::part; my $numtries=$Apache::lonhomework::history{"resource.$id.tries"}; if ( $numtries eq '') { $numtries = 0; } @@ -39,14 +39,14 @@ sub end_hintgroup { my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; my $result; - if ($target ne 'meta' || $target ne 'grade') { + if ($target eq 'web') { my $id=$Apache::inputtags::part; my $numtries=$Apache::lonhomework::history{"resource.$id.tries"}; if ( $numtries eq '') { $numtries = 0; } my $hinttries=&Apache::lonnet::EXT("resource.$id.hinttries"); if ( $hinttries eq '') { $hinttries = 1; } &Apache::lonxml::debug("found :$id:$numtries:$hinttries:"); - if ( $numtries >= $hinttries ) { + if ( $numtries <= $hinttries ) { if ($target eq 'web') {$result='';} } } @@ -61,7 +61,7 @@ sub start_numericalhint { sub end_numericalhint { my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; my $result; - if ($target ne 'meta' && $target ne 'grade') { + if ($target eq 'web') { my $args =''; $safeeval->share_from('capa',['&caparesponse_capa_check_answer']); if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; }