Diff for /rat/lonuserstate.pm between versions 1.107.2.2 and 1.113

version 1.107.2.2, 2006/05/11 23:59:11 version 1.113, 2006/05/25 21:09:45
Line 545  sub hiddenurls { Line 545  sub hiddenurls {
 sub readmap {  sub readmap {
     my $short=shift;      my $short=shift;
     $short=~s/^\///;      $short=~s/^\///;
     my %cenv=&Apache::lonnet::coursedescription($short);      my %cenv=&Apache::lonnet::coursedescription($short,{'freshen_cache'=>1});
     my $fn=$cenv{'fn'};      my $fn=$cenv{'fn'};
     my $uri;      my $uri;
     $short=~s/\//\_/g;      $short=~s/\//\_/g;
Line 597  sub readmap { Line 597  sub readmap {
     } elsif ($key =~ /^(map_(?:start|finish|pc)_)(.*)/) {      } elsif ($key =~ /^(map_(?:start|finish|pc)_)(.*)/) {
  my ($type, $url) = ($1,$2);   my ($type, $url) = ($1,$2);
  my $value = $hash{$key};   my $value = $hash{$key};
  delete($hash{$key});  
  $hash{$type.&putinversion($url)}=$value;   $hash{$type.&putinversion($url)}=$value;
     }      }
  }   }
Line 682  sub evalstate { Line 681  sub evalstate {
     if (-e $fn) {      if (-e $fn) {
  my @conditions=();   my @conditions=();
  {   {
     my $fh=Apache::File->new($fn);      open(my $fh,$fn);
     @conditions=<$fh>;      @conditions=<$fh>;
  }     }  
  my $safeeval = new Safe;   my $safeeval = new Safe;

Removed from v.1.107.2.2  
changed lines
  Added in v.1.113


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