version 1.183, 2003/06/13 14:01:26
|
version 1.184, 2003/06/13 14:35:24
|
Line 266 ENDCHECKOUT
|
Line 266 ENDCHECKOUT
|
sub start_problem { |
sub start_problem { |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_; |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_; |
|
|
$Apache::lonhomework::parsing_a_problem=1; |
if ( $Apache::inputtags::part ne '' || |
if ( $Apache::inputtags::part ne '' ) { |
$Apache::lonhomework::parsing_a_problem) { |
&Apache::lonxml::error('Only one problem allowed in a .problem file'); |
&Apache::lonxml::error('Only one <problem> allowed in a .problem file'); |
my $bodytext=&Apache::lonxml::get_all_text("/problem",$parser); |
#my $bodytext=&Apache::lonxml::get_all_text("/problem",$parser); |
return ''; |
return ''; |
} |
} |
|
|
|
$Apache::lonhomework::parsing_a_problem=1; |
#initialize globals |
#initialize globals |
$Apache::inputtags::part='0'; |
$Apache::inputtags::part='0'; |
@Apache::inputtags::partlist=('0'); |
@Apache::inputtags::partlist=('0'); |