--- loncom/homework/structuretags.pm 2001/05/15 20:48:43 1.38 +++ loncom/homework/structuretags.pm 2001/05/31 22:37:56 1.39 @@ -64,9 +64,7 @@ sub start_problem { } } if ($target eq 'web') { - my $args =''; - if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } - my $name = &Apache::run::run("{$args;".'return $name}',$safeeval); + my $name= &Apache::lonxml::get_param('name',$parstack,$safeeval); if ($name eq '') { $name=&Apache::lonnet::EXT('resource.title'); if ($name eq 'con_lost') { $name = ''; } @@ -95,7 +93,7 @@ sub start_problem {
'; - my $temp=&Apache::edit::insertlist($token,$target); + my $temp=&Apache::edit::insertlist($target,$token); $result.=$temp; return $result; } @@ -249,9 +247,7 @@ sub end_randomlist { sub start_part { my ($target,$token,$parstack,$parser,$safeeval)=@_; - my $args =''; - if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } - my $id = &Apache::run::run("{$args;".'return $id}',$safeeval); + my $id= &Apache::lonxml::get_param('id',$parstack,$safeeval); $Apache::inputtags::part=$id; @Apache::inputtags::responselist = (); if ($target eq 'meta') {