--- rat/lonwrapper.pm 2004/09/18 16:32:17 1.16 +++ 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.16 2004/09/18 16:32:17 albertel Exp $ +# $Id: lonwrapper.pm,v 1.18 2005/04/07 06:56:27 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -25,19 +25,12 @@ # # http://www.lon-capa.org/ # -# (Edit Handler for RAT Maps -# (TeX Content Handler -# -# 05/29/00,05/30 Gerd Kortemeyer) -# 7/1,6/30 Gerd Kortemeyer) -# -# 7/5 Gerd Kortemeyer package Apache::lonwrapper; use strict; use Apache::Constants qw(:common); -use Apache::lonnet(); +use Apache::lonnet; use Apache::lonxml(); use Apache::lonmenu; @@ -59,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 # @@ -73,7 +66,7 @@ sub handler { # # This is uploaded homework # - $ENV{'request.state'}='uploaded'; + $env{'request.state'}='uploaded'; &Apache::lonhomework::renderpage($r,$url); } else { # @@ -85,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 # @@ -94,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 #