--- rat/lonuserstate.pm 2011/10/20 17:14:19 1.142 +++ rat/lonuserstate.pm 2012/07/21 21:08:56 1.143 @@ -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.142 2011/10/20 17:14:19 raeburn Exp $ +# $Id: lonuserstate.pm,v 1.143 2012/07/21 21:08:56 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1220,7 +1220,9 @@ sub readmap { # &Apache::lonnet::appenv({"request.course.id" => $short, "request.course.fn" => $fn, - "request.course.uri" => $uri}); + "request.course.uri" => $uri, + "request.course.tied" => time}); + $untiedhash = untie(%hash); $untiedparmhash = untie(%parmhash); $gotstate = 1; @@ -1376,7 +1378,8 @@ sub build_tmp_hashes { if (defined($hash{'map_start_'.$uri})) { &Apache::lonnet::appenv({"request.course.id" => $short, "request.course.fn" => $fn, - "request.course.uri" => $uri}); + "request.course.uri" => $uri, + "request.course.tied" => time}); $env{'request.course.id'}=$short; &traceroute('0',$hash{'map_start_'.$uri},'&'); &accinit($uri,$short,$fn);