--- loncom/homework/grades.pm 2008/12/24 07:06:08 1.528.2.4 +++ loncom/homework/grades.pm 2009/01/06 21:58:06 1.528.2.8 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.528.2.4 2008/12/24 07:06:08 raeburn Exp $ +# $Id: grades.pm,v 1.528.2.8 2009/01/06 21:58:06 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2135,7 +2135,7 @@ KEYWORDS ' )   '; my $files=&get_submitted_files($udom,$uname,$partid,$respid,\%record); if (@$files) { - $lastsubonly.='
'.&mt('Like all files provided by users, this file may contain virusses').'
'; + $lastsubonly.='
'.&mt('Like all files provided by users, this file may contain viruses').'
'; my $file_counter = 0; foreach my $file (@$files) { $file_counter++; @@ -2358,7 +2358,7 @@ sub get_last_submission { $$returnhash{$version.':keys'}))) { $lasthash{$key}=$$returnhash{$version.':'.$key}; $timestamp = - scalar(localtime($$returnhash{$version.':timestamp'})); + &Apache::lonlocal::locallocaltime($$returnhash{$version.':timestamp'}); } } foreach my $key (keys(%lasthash)) { @@ -7349,11 +7349,11 @@ sub scantron_get_maxbubble { my ($numbub,$numshown); if ($analysis->{$part_id.'.type'} eq 'optionresponse') { if (ref($analysis->{$part_id.'.options'}) eq 'ARRAY') { - $numbub = scalar(@{$analysis{$part_id.'.options'}}); + $numbub = scalar(@{$analysis->{$part_id.'.options'}}); } } elsif ($analysis->{$part_id.'.type'} eq 'matchresponse') { - if (ref($analysis{$part_id.'.items'}) eq 'ARRAY') { - $numbub = scalar(@{$analysis{$part_id.'.items'}}); + if (ref($analysis->{$part_id.'.items'}) eq 'ARRAY') { + $numbub = scalar(@{$analysis->{$part_id.'.items'}}); } } elsif ($analysis->{$part_id.'.type'} eq 'rankresponse') { if (ref($analysis->{$part_id.'.foils'}) eq 'ARRAY') { @@ -7933,7 +7933,7 @@ sub checkscantron_results { my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin($r,'Scantron/Submissions Comparison Status', 'Progress of Scantron Data/Submission Records Comparison',$count, 'inline',undef,'checkscantron'); - my ($username,$domain,$uname,$started); + my ($username,$domain,$started); &Apache::grades::scantron_get_maxbubble(); # Need the bubble lines array to parse.