--- loncom/homework/matchresponse.pm 2003/09/24 18:14:30 1.24 +++ loncom/homework/matchresponse.pm 2003/10/10 16:47:25 1.25 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Full matching style response # -# $Id: matchresponse.pm,v 1.24 2003/09/24 18:14:30 sakharuk Exp $ +# $Id: matchresponse.pm,v 1.25 2003/10/10 16:47:25 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -369,7 +369,7 @@ sub displayfoils { %name_letter_map= %{ $Apache::response::itemgroup{'name_letter_map'} }; } - if ((($solved =~ /^correct/) || ($status eq 'SHOW_ANSWER')) && ($target ne 'tex')) { + if ( &Apache::response::show_answer() && ($target ne 'tex')) { foreach my $name (@whichfoils) { my $text=$Apache::response::foilgroup{$name.'.text'}; my $value=$Apache::response::foilgroup{$name.'.value'};