--- loncom/homework/structuretags.pm 2000/11/28 19:15:48 1.14 +++ loncom/homework/structuretags.pm 2000/11/28 20:11:25 1.15 @@ -29,6 +29,7 @@ sub end_tex { sub start_problem { my ($target,$token,$parstack,$parser,$safeeval)=@_; + unless ($target eq 'meta') { my $args =''; if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; @@ -37,8 +38,11 @@ sub start_problem { $Apache::inputtags::part='0'; my $expression='$external::part='.$Apache::inputtags::part.';'; $safeeval->share_from('Apache::inputtags',['@part']); - &Apache::run::run($expression) + &Apache::run::run($expression); return "$name\n\n
"; +} else { + return &Apache::response::mandatory_part_meta; +} } sub end_problem { @@ -154,6 +158,9 @@ sub start_part { if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } my $id = &Apache::run::run("{$args;".'return $id}',$safeeval); $Apache::inputtags::part=$id; + if ($target eq 'meta') { + return &Apache::response::mandatory_part_meta; + } } sub end_part {