Diff for /loncom/homework/outputtags.pm between versions 1.47 and 1.48

version 1.47, 2006/04/20 19:09:48 version 1.48, 2006/05/12 03:46:54
Line 73  sub start_displayduedate { Line 73  sub start_displayduedate {
     }      }
     if (($status =~ /CAN.*_ANSWER/)) {      if (($status =~ /CAN.*_ANSWER/)) {
  my $id = $Apache::inputtags::part;   my $id = $Apache::inputtags::part;
  my $date;   my $date = &Apache::lonhomework::due_date($id);
  my $interval= &Apache::lonnet::EXT("resource.$id.interval");  
  if ($interval) {  
     my $first_access=&Apache::lonnet::get_first_access('map');  
     if ($first_access) { $date = $first_access+$interval; }  
  }  
  if (!defined($date)) {  
     $date = &Apache::lonnet::EXT("resource.$id.duedate");  
  }  
  &Apache::lonxml::debug("duedatebox found $date for $id");   &Apache::lonxml::debug("duedatebox found $date for $id");
   
  # Only show the due date if the current date is    # Only show the due date if the current date is 

Removed from v.1.47  
changed lines
  Added in v.1.48


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>