--- loncom/homework/bridgetask.pm 2007/01/11 19:01:38 1.218 +++ loncom/homework/bridgetask.pm 2007/01/13 06:11:17 1.219 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.218 2007/01/11 19:01:38 albertel Exp $ +# $Id: bridgetask.pm,v 1.219 2007/01/13 06:11:17 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2486,7 +2486,15 @@ sub question_status_message { $status .= '.'; if ($counts->{'opt'}) { $status .= ' You were required to pass '.$counts->{'opt_req'}. - ' optional component'.($counts->{'opt_req'} == 1?'':'s'); + 'optional '; + if ($counts->{'opt_dim'} + $counts->{'man_dim'} < 1) { + $status .= + ' component'.($counts->{'opt_req'} == 1?'':'s'); + } else { + $status .= + ($counts->{'opt_req'} == 1?'criterion':'criteria'); + } + $status .= '.'; } return $status; }