- Landscape
- Portrait
+ Landscape
+ Portrait
@@ -2262,7 +2332,7 @@ STATEHTML
$result .= " \n";
$result .= "\n";
- my %parmhash=&Apache::lonnet::coursedescription($ENV{'request.course.id'});
+ my %parmhash=&Apache::lonnet::coursedescription($env{'request.course.id'});
my $DefaultPaperSize=$parmhash{'default_paper_size'};
if ($DefaultPaperSize eq '') {$DefaultPaperSize='letter';}
$i = 0;
@@ -2286,8 +2356,8 @@ sub postprocess {
my $var = $self->{'variable'};
my $helper = Apache::lonhelper->getHelper();
$helper->{VARS}->{$var} =
- $ENV{"form.$var.layout"} . '|' . $ENV{"form.$var.cols"} . '|' .
- $ENV{"form.$var.paper"};
+ $env{"form.$var.layout"} . '|' . $env{"form.$var.cols"} . '|' .
+ $env{"form.$var.paper"};
return 1;
}
@@ -2317,7 +2387,7 @@ is no tag interface. You actually pass p
=cut
use Apache::lonhelper;
-
+use Apache::lonnet;
no strict;
@ISA = ("Apache::lonhelper::element");
use strict;
@@ -2415,12 +2485,12 @@ sub postprocess {
my $var = $self->{'variable'};
my $helper = Apache::lonhelper->getHelper();
- my $width = $helper->{VARS}->{$var .'.width'} = $ENV{"form.${var}.width"};
- my $height = $helper->{VARS}->{$var .'.height'} = $ENV{"form.${var}.height"};
- my $lmargin = $helper->{VARS}->{$var .'.lmargin'} = $ENV{"form.${var}.lmargin"};
- $helper->{VARS}->{$var .'.widthunit'} = $ENV{"form.${var}.widthunit"};
- $helper->{VARS}->{$var .'.heightunit'} = $ENV{"form.${var}.heightunit"};
- $helper->{VARS}->{$var .'.lmarginunit'} = $ENV{"form.${var}.lmarginunit"};
+ my $width = $helper->{VARS}->{$var .'.width'} = $env{"form.${var}.width"};
+ my $height = $helper->{VARS}->{$var .'.height'} = $env{"form.${var}.height"};
+ my $lmargin = $helper->{VARS}->{$var .'.lmargin'} = $env{"form.${var}.lmargin"};
+ $helper->{VARS}->{$var .'.widthunit'} = $env{"form.${var}.widthunit"};
+ $helper->{VARS}->{$var .'.heightunit'} = $env{"form.${var}.heightunit"};
+ $helper->{VARS}->{$var .'.lmarginunit'} = $env{"form.${var}.lmarginunit"};
my $error = '';