--- loncom/homework/matchresponse.pm 2003/07/01 20:13:30 1.20 +++ loncom/homework/matchresponse.pm 2003/09/23 01:52:57 1.20.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Full matching style response # -# $Id: matchresponse.pm,v 1.20 2003/07/01 20:13:30 sakharuk Exp $ +# $Id: matchresponse.pm,v 1.20.2.1 2003/09/23 01:52:57 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -370,7 +370,7 @@ sub displayfoils { %name_letter_map= %{ $Apache::response::itemgroup{'name_letter_map'} }; } - if (($solved =~ /^correct/) || ($status eq 'SHOW_ANSWER')) { + if ( &Apache::response::show_answer() ) { foreach my $name (@whichfoils) { my $text=$Apache::response::foilgroup{$name.'.text'}; my $value=$Apache::response::foilgroup{$name.'.value'};