--- loncom/homework/structuretags.pm 2005/09/01 18:21:47 1.299 +++ loncom/homework/structuretags.pm 2005/09/23 18:39:55 1.301 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.299 2005/09/01 18:21:47 albertel Exp $ +# $Id: structuretags.pm,v 1.301 2005/09/23 18:39:55 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -511,7 +511,6 @@ sub start_problem { defined($env{'form.problemtype'})) { $Apache::lonhomework::type=$env{'form.problemtype'}; } - $Apache::lonhomework::default_type = $Apache::lonhomework::type; &Apache::lonxml::debug("Found this to be of type :$Apache::ltonhomework::type:"); } if ($Apache::lonhomework::type eq '' ) { @@ -524,6 +523,7 @@ sub start_problem { &Apache::lonxml::debug("Using default type, problem, :$uri:"); } } + $Apache::lonhomework::default_type = $Apache::lonhomework::type; #added vars to the scripting enviroment my $expression='$external::part=\''.$Apache::inputtags::part.'\';'; @@ -566,11 +566,12 @@ sub start_problem { value="'.$env{'form.username'}.'" />'; if ($env{'user.adv'}) { $form_tag_start.= - ' '.&mt(' Show All Foils'); + $form_tag_start.= ' />'.&mt(' Show All Foils'). + ''; } $form_tag_start.='