--- loncom/homework/lonhomework.pm 2004/10/18 18:08:54 1.182 +++ loncom/homework/lonhomework.pm 2004/12/17 22:30:30 1.187 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.182 2004/10/18 18:08:54 albertel Exp $ +# $Id: lonhomework.pm,v 1.187 2004/12/17 22:30:30 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -385,6 +385,12 @@ sub setuppermissions { '/'.$ENV{'request.course.sec'}); } $Apache::lonhomework::viewgrades = $viewgrades; + if ($Apache::lonhomework::browse eq 'F' && + $ENV{'form.devalidatecourseresdata'} eq 'on') { + my (undef,$courseid) = &Apache::lonxml::whichuser(); + &Apache::lonnet::devalidatecourseresdata($ENV{"course.$courseid.num"}, + $ENV{"course.$courseid.domain"}); + } return '' } @@ -449,9 +455,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.='