Diff for /loncom/homework/inputtags.pm between versions 1.333.2.9.2.3 and 1.333.2.10

version 1.333.2.9.2.3, 2021/09/11 16:48:57 version 1.333.2.10, 2021/09/11 16:09:56
Line 1329  sub decideoutput { Line 1329  sub decideoutput {
             my $first_access=&Apache::lonnet::get_first_access($interval[1]);              my $first_access=&Apache::lonnet::get_first_access($interval[1]);
             if (defined($first_access)) {              if (defined($first_access)) {
                 my $due_date= &Apache::lonnet::EXT("resource.$part.duedate");                  my $due_date= &Apache::lonnet::EXT("resource.$part.duedate");
                 my ($timelimit) = ($interval[0] =~ /^(\d+)/);                  unless (($due_date) && ($due_date < $first_access + $interval[0])) { 
                 unless (($due_date) && ($due_date < $first_access + $timelimit)) {   
                     $message = &mt("Answer Submitted: Your final submission will be graded when the time limit is reached.");                      $message = &mt("Answer Submitted: Your final submission will be graded when the time limit is reached.");
                 }                  }
             }              }
Line 1880  sub previous_tries { Line 1879  sub previous_tries {
     my $prefix = $env{'form.request.prefix'};      my $prefix = $env{'form.request.prefix'};
     $prefix =~ tr{.}{_};      $prefix =~ tr{.}{_};
     my $function_name = 'LONCAPA_previous_tries_'.$prefix;      my $function_name = 'LONCAPA_previous_tries_'.$prefix;
     if (($env{'request.state'} eq 'construct') || ($id =~ /\W/)) {      if (($env{'request.state'} eq 'construct') || ($id =~ /[._]|[^\w\s\-]/)) {
         $function_name .= $Apache::lonxml::curdepth;          $function_name .= $Apache::lonxml::curdepth;
     } else {      } else {
         $function_name .= $id;          $function_name .= &js_escape($id);
     }      }
     $function_name .= '_'.$Apache::lonxml::counter;      $function_name .= '_'.$Apache::lonxml::counter;
     my $possmathjax = 1;      my $possmathjax = 1;

Removed from v.1.333.2.9.2.3  
changed lines
  Added in v.1.333.2.10


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