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

version 1.47, 2006/04/20 19:09:48 version 1.51, 2007/10/08 23:02:57
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 
Line 177  sub end_displaytitle { Line 169  sub end_displaytitle {
 sub multipart {  sub multipart {
     my ($uri)=@_;      my ($uri)=@_;
     if (!defined($uri)) { $uri=$env{'request.uri'}; }      if (!defined($uri)) { $uri=$env{'request.uri'}; }
     my ($symb)=&Apache::lonxml::whichuser();      my ($symb)=&Apache::lonnet::whichuser();
   
     my @parts;      my @parts;
     my $metadata = &Apache::lonnet::metadata($uri,'packages');      my $metadata = &Apache::lonnet::metadata($uri,'packages');
Line 244  sub end_displayweight { Line 236  sub end_displayweight {
 sub start_displaystudentphoto {  sub start_displaystudentphoto {
     my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;      my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
     my $result;      my $result;
     my (undef,undef,$domain,$user) = &Apache::lonxml::whichuser();      my (undef,undef,$domain,$user) = &Apache::lonnet::whichuser();
     if ($target eq 'web' && $user eq $env{'user.name'}) {      if ($target eq 'web' && $user eq $env{'user.name'}) {
  my $url=&Apache::lonnet::studentphoto($domain,$user,"gif");   my $url=&Apache::lonnet::studentphoto($domain,$user,"gif");
  my $args;   my $args;

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


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