--- loncom/interface/lonhelper.pm 2003/05/07 19:24:07 1.23 +++ loncom/interface/lonhelper.pm 2003/05/08 19:17:31 1.24 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.23 2003/05/07 19:24:07 bowersj2 Exp $ +# $Id: lonhelper.pm,v 1.24 2003/05/08 19:17:31 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -949,7 +949,7 @@ sub start_choices { } # Need to initialize the choices list, so everything can assume it exists - $paramHash->{'variable'} = $token->[2]{'variable'}; + $paramHash->{'variable'} = $token->[2]{'variable'} if (!defined($paramHash->{'variable'})); $helper->declareVar($paramHash->{'variable'}); $paramHash->{'multichoice'} = $token->[2]{'multichoice'}; $paramHash->{CHOICES} = []; @@ -1909,7 +1909,14 @@ BUTTONS } my $fileName = $subdir .'/'. $file; if (&$filterFunc($file)) { - (my $status, my $color) = @{fileState($subdir, $file)}; + my $status; + my $color; + if ($helper->{VARS}->{'construction'}) { + ($status, $color) = @{fileState($subdir, $file)}; + } else { + $status = ''; + $color = ''; + } # Netscape 4 is stupid and there's nowhere to put the # information on the input tag that the file is Published,