--- rat/lonwrapper.pm 2005/02/17 09:09:57 1.17 +++ rat/lonwrapper.pm 2005/04/07 06:56:27 1.18 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Wrapper for external and binary files as standalone resources # -# $Id: lonwrapper.pm,v 1.17 2005/02/17 09:09:57 albertel Exp $ +# $Id: lonwrapper.pm,v 1.18 2005/04/07 06:56:27 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -30,7 +30,7 @@ package Apache::lonwrapper; use strict; use Apache::Constants qw(:common); -use Apache::lonnet(); +use Apache::lonnet; use Apache::lonxml(); use Apache::lonmenu; @@ -52,7 +52,7 @@ sub handler { $url=~s/^\/adm\/wrapper//; $url=~s/^\/ext\//http\:\/\//; $url=~s|:|:|g; - if ($ENV{'form.wrapperdisplay'} eq 'menu') { + if ($env{'form.wrapperdisplay'} eq 'menu') { # # Producing the menu buttons # @@ -66,7 +66,7 @@ sub handler { # # This is uploaded homework # - $ENV{'request.state'}='uploaded'; + $env{'request.state'}='uploaded'; &Apache::lonhomework::renderpage($r,$url); } else { # @@ -78,7 +78,7 @@ sub handler { '" onUnload="'.&Apache::lonmenu::unloadevents.'"'; my $script=&Apache::lonmenu::registerurl(1,undef); - if ($ENV{'browser.interface'} eq 'textual') { + if ($env{'browser.interface'} eq 'textual') { # # ssi-based rendering for text-based interface # @@ -87,7 +87,7 @@ sub handler { ''. &Apache::lonmenu::menubuttons(1). &Apache::lonnet::ssi_body($url).''); - } elsif ($ENV{'environment.remote'} eq 'off') { + } elsif ($env{'environment.remote'} eq 'off') { # # This is inline remote #