--- loncom/homework/lonhomework.pm 2001/01/08 13:51:10 1.28 +++ loncom/homework/lonhomework.pm 2001/01/11 15:25:46 1.32 @@ -12,6 +12,7 @@ use Apache::inputtags; use Apache::structuretags; use Apache::response; use Apache::hint; +use Apache::outputtags; use Apache::Constants qw(:common); sub get_target { @@ -29,7 +30,9 @@ sub get_target { return ('web'); } } else { - return ('edit'); + #return ('edit'); + #edit is currently broken + return ('web'); } } return (); @@ -72,6 +75,8 @@ sub check_date { &Apache::lonxml::debug("found :$date: for :$temp:"); if ($date eq '') { $date = "an unknown date"; $passed = 0; + } elsif ($date eq 'con_lost') { + $date = "an indeterminate date"; $passed = 0; } else { if (time < $date) { $passed = 0; } else { $passed = 1; } $date = localtime $date; @@ -90,7 +95,7 @@ sub check_date { $datemsg = "is due at $date"; } elsif ($type eq 'answerdate') { $status='CLOSED'; - $datemsg = "was due as $lastdate, and answers will be available at $date"; + $datemsg = "was due on $lastdate, and answers will be available on $date"; } if ($status eq 'CAN_ANSWER') { #check #tries