version 1.79, 2002/10/21 20:31:06
|
version 1.80, 2002/10/30 23:37:57
|
Line 114 sub start_display {
|
Line 114 sub start_display {
|
} elsif ( $target eq 'web' || $target eq 'tex' || |
} elsif ( $target eq 'web' || $target eq 'tex' || |
$target eq 'grade' || $target eq 'answer' || |
$target eq 'grade' || $target eq 'answer' || |
$target eq 'analyze') { |
$target eq 'analyze') { |
$result=&Apache::run::run($bodytext,$safeeval); |
if (!$Apache::lonxml::default_homework_loaded) { |
if ($target eq 'grade' || $target eq 'answer' || |
&Apache::lonxml::default_homework_load($safeeval); |
$target eq 'analyze') { |
} |
$result=''; # grade should produce no output |
$result=&Apache::run::run($bodytext,$safeeval); |
} |
if ($target eq 'grade' || $target eq 'answer' || |
|
$target eq 'analyze') { |
|
$result=''; # grade should produce no output |
|
} |
} elsif ($target eq "edit" ) { |
} elsif ($target eq "edit" ) { |
#$result = |
#$result = |
# "<br /> <$token->[1]> output: <br />$bodytext<br />Source:<br />"; |
# "<br /> <$token->[1]> output: <br />$bodytext<br />Source:<br />"; |