--- rat/lonpageflip.pm 2015/03/14 21:56:13 1.87 +++ rat/lonpageflip.pm 2015/03/14 22:26:50 1.88 @@ -2,7 +2,7 @@ # # Page flip handler # -# $Id: lonpageflip.pm,v 1.87 2015/03/14 21:56:13 raeburn Exp $ +# $Id: lonpageflip.pm,v 1.88 2015/03/14 22:26:50 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -269,7 +269,7 @@ sub handler { my @possibilities=(); &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['postdata']); if (($env{'form.postdata'})&&($env{'request.course.fn'})) { - $env{'form.postdata'}=~/(\w+)\:(.*)/; + my ($direction,$currenturl) = ($env{'form.postdata'}=~/(\w+)\:(.*)/); if ($env{'request.course.id'}) { # Check if course needs to be re-initialized @@ -293,8 +293,6 @@ sub handler { } } - my $direction=$1; - my $currenturl=$2; if ($currenturl=~m|^/enc/|) { $currenturl=&Apache::lonenc::unencrypted($currenturl); }