--- loncom/homework/lonhomework.pm 2004/02/16 19:19:31 1.167 +++ loncom/homework/lonhomework.pm 2004/02/23 23:29:47 1.169 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.167 2004/02/16 19:19:31 albertel Exp $ +# $Id: lonhomework.pm,v 1.169 2004/02/23 23:29:47 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -47,6 +47,7 @@ use Apache::externalresponse(); use Apache::rankresponse(); use Apache::matchresponse(); use Apache::chemresponse(); +use Apache::drawimage(); use Apache::Constants qw(:common); use HTML::Entities(); use Apache::loncommon(); @@ -205,11 +206,12 @@ sub check_access { if ($ENV{'form.problemstate'} =~ /^CANNOT_ANSWER/) { if ( ! ($ENV{'form.problemstate'} eq 'CANNOT_ANSWER_correct' && lc($Apache::lonhomework::problemstatus) eq 'no')) { - return ('CANNOT_ANSWER','is in this state by royal decree.'); + return ('CANNOT_ANSWER', + &mt('is in this state by royal decree.')); } } else { return ($ENV{'form.problemstate'}, - 'is in this state by royal decree.'); + &mt('is in this state by royal decree.')); } } &Apache::lonxml::debug("in construction ignoring dates");