--- rat/lonpageflip.pm 2002/04/11 01:57:36 1.19 +++ rat/lonpageflip.pm 2002/04/11 15:43:40 1.20 @@ -2,7 +2,7 @@ # # Page flip handler # -# $Id: lonpageflip.pm,v 1.19 2002/04/11 01:57:36 www Exp $ +# $Id: lonpageflip.pm,v 1.20 2002/04/11 15:43:40 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -156,7 +156,6 @@ sub handler { my $redirecturl=''; my $next=''; my @possibilities=(); - if (($ENV{'form.postdata'})&&($ENV{'request.course.fn'})) { $ENV{'form.postdata'}=~/(\w+)\:(.*)/; my $direction=$1; @@ -206,6 +205,8 @@ sub handler { # ------------------------------------------------------------------------- Yes my ($mapurl,$mapnum,$thisurl)=split(/\_\_\_/,$position); $cachehash{$mapurl}{$thisurl}=$mapnum; + $cachehash{$mapurl}{'last_known'}=&Apache::lonnet::declutter($currenturl); + # ============================================================ Tie the big hash if (tie(%hash,'GDBM_File',$ENV{'request.course.fn'}.'.db', &GDBM_READER,0640)) { @@ -253,10 +254,8 @@ sub handler { untie(%hash); # --------------------------------------------------------- Store position info $cachehash{$mapurl}{'last_direction'}=$direction; - $cachehash{$mapurl}{'last_known'}= - &Apache::lonnet::declutter($currenturl); foreach my $thismap (keys %cachehash) { - &Apache::lonnet::symblist($thismap,%{$cachehash{$thisurl}}); + &Apache::lonnet::symblist($thismap,%{$cachehash{$thismap}}); } # ============================================== Do not return before this line if ($redirecturl) {