Diff for /loncom/interface/lonwhatsnew.pm between versions 1.63 and 1.64

version 1.63, 2006/10/13 22:03:26 version 1.64, 2006/11/23 00:02:38
Line 286  sub display_actions_box { Line 286  sub display_actions_box {
         $result = &store_courseinit_setting($uname,$udom,$cid,$initpage);          $result = &store_courseinit_setting($uname,$udom,$cid,$initpage);
     }      }
   
     my %threshold = (      my %threshold = ();
                       av_attempts => 2,  
                       degdiff => 0.5,  
                       numstudents => 2,  
                      );  
     my %pagedesc = &Apache::lonlocal::texthash (      my %pagedesc = &Apache::lonlocal::texthash (
                      firstres => 'First resource',                       firstres => 'First resource',
                      whatsnew => "What's New? page",                       whatsnew => "What's New? page",
Line 468  sub display_threshold_config { Line 464  sub display_threshold_config {
     my $rowColor;      my $rowColor;
   
     my @thresholditems = ("av_attempts","degdiff","numstudents");      my @thresholditems = ("av_attempts","degdiff","numstudents");
     foreach my $item (@thresholditems) {  
         $threshold{$item} = '';  
     }  
     my %threshold_titles = &Apache::lonlocal::texthash(      my %threshold_titles = &Apache::lonlocal::texthash(
                          av_attempts => 'Average number of attempts',                           av_attempts => 'Average number of attempts',
                          degdiff => 'Degree of difficulty',                           degdiff => 'Degree of difficulty',
Line 913  sub check_thresholds { Line 906  sub check_thresholds {
   
 sub get_curr_thresholds {  sub get_curr_thresholds {
     my ($threshold,$uname,$udom,$cid,$cdom,$crs) = @_;      my ($threshold,$uname,$udom,$cid,$cdom,$crs) = @_;
       # set default values
       %$threshold = (av_attempts => 2,
                     degdiff => 0.5,
                     numstudents => 2
                     );
     my %thresholdsettings = &Apache::lonnet::dump('nohist_whatsnew',$udom,      my %thresholdsettings = &Apache::lonnet::dump('nohist_whatsnew',$udom,
                                                      $uname,$cid.':threshold');                                                       $uname,$cid.':threshold');
     my $thresholdcount = 0;      my $thresholdcount = 0;

Removed from v.1.63  
changed lines
  Added in v.1.64


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