[LON-CAPA-cvs] cvs: rat / lonpageflip.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 11 Apr 2002 15:43:40 -0000
albertel Thu Apr 11 11:43:40 2002 EDT
Modified files:
/rat lonpageflip.pm
Log:
- typo fixed
- move last_known to be set earlier ($mapurl changes value after the move call)
- looks like BUG#270 should be fixed
Index: rat/lonpageflip.pm
diff -u rat/lonpageflip.pm:1.19 rat/lonpageflip.pm:1.20
--- rat/lonpageflip.pm:1.19 Wed Apr 10 21:57:36 2002
+++ rat/lonpageflip.pm Thu Apr 11 11:43:40 2002
@@ -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 @@
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 @@
# ------------------------------------------------------------------------- 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 @@
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) {