[system] / trunk / pg / macros / problemRandomize.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/problemRandomize.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5336 Revision 5337
329 # Include the "randomize" checkbox, button, or whatever. 329 # Include the "randomize" checkbox, button, or whatever.
330 # 330 #
331 if (lc($self->{when}) eq 'always' || 331 if (lc($self->{when}) eq 'always' ||
332 (lc($self->{when}) eq 'correct' && $result->{score} >= 1 && 332 (lc($self->{when}) eq 'correct' && $result->{score} >= 1 &&
333 !$main::inputs_ref->{previewAnswers})) { 333 !$main::inputs_ref->{previewAnswers})) {
334 if (!$self->{onlyAfterDue} || time >= $main::dueDate) {
334 my $method = "randomize".$self->{style}; 335 my $method = "randomize".$self->{style};
335 $result->{msg} .= $self->$method($self->{label},1).'<br/>'; 336 $result->{msg} .= $self->$method($self->{label},1).'<br/>';
337 }
336 } 338 }
337 339
338 # 340 #
339 # Don't show the summary section if the problem is being reset. 341 # Don't show the summary section if the problem is being reset.
340 # 342 #

Legend:
Removed from v.5336  
changed lines
  Added in v.5337

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9