--- loncom/homework/lonhomework.pm 2004/09/27 18:36:53 1.180 +++ loncom/homework/lonhomework.pm 2004/11/13 20:40:32 1.183 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.180 2004/09/27 18:36:53 albertel Exp $ +# $Id: lonhomework.pm,v 1.183 2004/11/13 20:40:32 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -292,7 +292,7 @@ sub check_access { $status = 'CANNOT_ANSWER'; } } - if ($status eq 'CAN_ANSWER') { + if ($status eq 'CAN_ANSWER' || $status eq 'CANNOT_ANSWER') { my $interval=&Apache::lonnet::EXT("resource.$id.interval"); &Apache::lonxml::debug("looking for interval $interval"); if ($interval) { @@ -449,9 +449,13 @@ sub handle_save_or_undo { sub analyze_header { my ($request) = @_; + my $bodytag='
'; + if ($ENV{'environment.remote'} eq 'off') { + $bodytag=&Apache::loncommon::bodytag(); + } my $result.='