--- rat/lonuserstate.pm 2006/05/12 15:28:50 1.107.2.3 +++ rat/lonuserstate.pm 2006/05/25 21:09:45 1.113 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construct and maintain state and binary representation of course for user # -# $Id: lonuserstate.pm,v 1.107.2.3 2006/05/12 15:28:50 matthew Exp $ +# $Id: lonuserstate.pm,v 1.113 2006/05/25 21:09:45 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -545,7 +545,7 @@ sub hiddenurls { sub readmap { my $short=shift; $short=~s/^\///; - my %cenv=&Apache::lonnet::coursedescription($short); + my %cenv=&Apache::lonnet::coursedescription($short,{'freshen_cache'=>1}); my $fn=$cenv{'fn'}; my $uri; $short=~s/\//\_/g; @@ -681,7 +681,7 @@ sub evalstate { if (-e $fn) { my @conditions=(); { - my $fh=Apache::File->new($fn); + open(my $fh,$fn); @conditions=<$fh>; } my $safeeval = new Safe;