Diff for /loncom/homework/essayresponse.pm between versions 1.115 and 1.118

version 1.115, 2011/07/26 17:14:51 version 1.118, 2014/01/21 14:38:55
Line 91  sub start_essayresponse { Line 91  sub start_essayresponse {
                       '<label>'.                        '<label>'.
       &mt('Collaborators:').' <input type="text" size="70" max="80" name="HWCOL'.        &mt('Collaborators:').' <input type="text" size="70" max="80" name="HWCOL'.
       $part.'_'.$id.'" value="'.$coll.'" /><br />'.        $part.'_'.$id.'" value="'.$coll.'" /><br />'.
       &mt('(Enter a maximum of [quant,_1,collaborator] using username or username:domain, e.g. smithje or smithje:[_2].)',$ncol,$env{'user.domain'});        &mt('Enter a maximum of [quant,_1,collaborator] using username or username:domain, e.g. smithje or smithje:[_2].',$ncol,$env{'user.domain'});
             if ($ncol > 1) {              if ($ncol > 1) {
                 $result .= '<br />'.&mt('If entering more than one, use spaces to separate the collaborators.');                  $result .= '<br />'.&mt('If entering more than one, use spaces to separate the collaborators.');
             }              }
Line 279  sub format_prior_response { Line 279  sub format_prior_response {
     }      }
     if ($answer =~ /\S/) {      if ($answer =~ /\S/) {
  $output.='<p>'.&mt('Submitted text').   $output.='<p>'.&mt('Submitted text').
     '<blockquote>'.$answer.'</blockquote></p>';      '<blockquote>'.&HTML::Entities::encode($answer, '"<>&').'</blockquote></p>';
     }      }
   
     return '<div class="LC_prior_essay">'.$output.'</div>';      return '<div class="LC_prior_essay">'.$output.'</div>';
Line 397  sub file_submission { Line 397  sub file_submission {
                 my ($path,$filename) = ($file =~ m{^(.*/)([^/]+)$});                  my ($path,$filename) = ($file =~ m{^(.*/)([^/]+)$});
                 my $fullpath = '/userfiles/portfolio'.$path;                  my $fullpath = '/userfiles/portfolio'.$path;
                 if (!exists($dirlist{$fullpath})) {                  if (!exists($dirlist{$fullpath})) {
                     my @list = &Apache::lonnet::dirlist($fullpath,$udom,$uname,1);                      my ($listref,$listerror) =
                     $dirlist{$fullpath} = \@list;                          &Apache::lonnet::dirlist($fullpath,$udom,$uname,1);
                       if (ref($listref) eq 'ARRAY') {
                           $dirlist{$fullpath} = $listref;
                       }
                 }                  }
                 if (ref($dirlist{$fullpath}) eq 'ARRAY') {                  if (ref($dirlist{$fullpath}) eq 'ARRAY') {
                     foreach my $dir_line (@{$dirlist{$fullpath}}) {                      foreach my $dir_line (@{$dirlist{$fullpath}}) {

Removed from v.1.115  
changed lines
  Added in v.1.118


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