--- rat/lonuserstate.pm 2004/10/26 23:00:11 1.81 +++ rat/lonuserstate.pm 2005/02/17 09:09:11 1.84 @@ -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.81 2004/10/26 23:00:11 albertel Exp $ +# $Id: lonuserstate.pm,v 1.84 2005/02/17 09:09:11 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -150,10 +150,12 @@ sub loadmap { $hash{'version_'.$turi}=$1; } } - &Apache::lonnet::do_cache(\%Apache::lonnet::titlecache, - &Apache::lonnet::encode_symb($uri,$token->[2]->{'id'}, - $turi), - $token->[2]->{'title'},'title'); + my $title=$token->[2]->{'title'}; + $title=~s/\&colon\;/\:/gs; +# my $symb=&Apache::lonnet::encode_symb($uri, +# $token->[2]->{'id'}, +# $turi); +# &Apache::lonnet::do_cache_new('title',$symb,$title); unless ($ispage) { $turi=~/\.(\w+)$/; my $embstyle=&Apache::loncommon::fileembstyle($1); @@ -303,7 +305,7 @@ sub loadmap { } } else { - $errtext.='Map not loaded: The file does not exist. '; + $errtext.='Map not loaded: The file ('.$fn.') does not exist. '; } } @@ -580,7 +582,8 @@ sub readmap { } # ---------------------------------------------------------------- Encrypt URLs foreach (keys %encurl) { - $hash{'src_'.$_}=&Apache::lonenc::encrypted($hash{'src_'.$_}); +# $hash{'src_'.$_}=&Apache::lonenc::encrypted($hash{'src_'.$_}); + $hash{'encrypted_'.$_}=1; } # ----------------------------------------------- Close hashes to finally store # --------------------------------- Routine must pass this point, no early outs