--- loncom/interface/groupsort.pm 2005/02/17 08:29:42 1.30 +++ loncom/interface/groupsort.pm 2005/04/07 06:56:22 1.31 @@ -2,7 +2,7 @@ # The LON-CAPA group sort handler # Allows for sorting prior to import into RAT. # -# $Id: groupsort.pm,v 1.30 2005/02/17 08:29:42 albertel Exp $ +# $Id: groupsort.pm,v 1.31 2005/04/07 06:56:22 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -69,7 +69,7 @@ sub handler { # finish_import looks different for graphical or "simple" RAT my $finishimport=''; - if ($ENV{'form.mode'} eq 'simple' || $ENV{'form.mode'} eq '') { + if ($env{'form.mode'} eq 'simple' || $env{'form.mode'} eq '') { $finishimport=(< $shash{$b}} (keys %shash)) { @@ -252,8 +252,8 @@ END $hash{'storectr_'.$key} = $newctr; $chash{$newctr} = $key; } - my $oldval = $ENV{'form.oldval'}; - my $newval = $ENV{'form.newval'}; + my $oldval = $env{'form.oldval'}; + my $newval = $env{'form.newval'}; if ($oldval != $newval) { # when newval==0, then push down and delete if ($newval!=0) { @@ -314,18 +314,18 @@ END - + END # --- Expand here if "GO BACK" button desired - if ($ENV{'form.catalogmode'} eq 'groupimport') { + if ($env{'form.catalogmode'} eq 'groupimport') { my $resurl = &Apache::loncommon::lastresurl(); $r->print(<  END } - if ($ENV{'form.catalogmode'} eq 'groupsearch') { + if ($env{'form.catalogmode'} eq 'groupsearch') { $r->print(<  @@ -351,7 +351,7 @@ END - + END } foreach (sort {$shash{$a}<=>$shash{$b}} (keys %shash)) {