Diff for /loncom/homework/default_homework.lcpm between versions 1.151 and 1.153

version 1.151, 2010/12/16 16:01:01 version 1.153, 2011/05/21 14:08:06
Line 364  sub caparesponse_check_list { Line 364  sub caparesponse_check_list {
         if (ref($LONCAPA::CAPAresponse_answer->{'answers'}) eq 'ARRAY') {          if (ref($LONCAPA::CAPAresponse_answer->{'answers'}) eq 'ARRAY') {
             foreach my $strans (@{$LONCAPA::CAPAresponse_answer->{'answers'}}) {              foreach my $strans (@{$LONCAPA::CAPAresponse_answer->{'answers'}}) {
                 if (ref($strans) eq 'ARRAY') {                  if (ref($strans) eq 'ARRAY') {
                       $ansstring = join("\0",@{$strans});
                     foreach my $item (@{$strans}) {                        foreach my $item (@{$strans}) {  
                         if ($item =~ /[\000-\037]/) {                          if ($item =~ /[\000-\037]/) {
                             $allow_control_char = 1;                              $allow_control_char = 1;
Line 373  sub caparesponse_check_list { Line 374  sub caparesponse_check_list {
             }              }
         }          }
     }      }
     if (($type eq 'cs') || ($type eq 'ci')) {  
         if (ref($LONCAPA::CAPAresponse_answer->{'answers'}) eq 'ARRAY') {  
             foreach my $answer (@{ $LONCAPA::CAPAresponse_answer->{'answers'} }) {  
                 if (ref($answer) eq 'ARRAY') {  
                     $ansstring = join("\0",@{$answer});  
                 }  
             }  
         }  
     }  
   
 #    &LONCAPA_INTERNAL_DEBUG(&LONCAPA_INTERNAL_Dumper($responses));  #    &LONCAPA_INTERNAL_DEBUG(&LONCAPA_INTERNAL_Dumper($responses));
     my %memoized;      my %memoized;
Line 1133  sub class { Line 1125  sub class {
     return $course;      return $course;
 }  }
   
   sub classid {
       my $courseid = &EXT('request.course.id');
       $courseid = '' if $courseid eq "";
       return $courseid;
   }
   
 sub firstname {  sub firstname {
     my $firstname = &EXT('environment.firstname');      my $firstname = &EXT('environment.firstname');
     $firstname = '' if $firstname eq "";      $firstname = '' if $firstname eq "";
     return $firstname;      return $firstname;
 }  }
   
   sub middlename {
       my $middlename = &EXT('environment.middlename');
       $middlename = '' if $middlename eq "";
       return $middlename;
   }
   
                                                                                                                                                                   
 sub lastname {  sub lastname {
     my $lastname = &EXT('environment.lastname');      my $lastname = &EXT('environment.lastname');

Removed from v.1.151  
changed lines
  Added in v.1.153


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