allow "penalties" to be returned from Rottmeier Find-It quizzes

This commit is contained in:
gbateson 2005-11-18 06:07:02 +00:00
parent 0fcac008cb
commit 0e143b3514
2 changed files with 3217 additions and 3101 deletions

File diff suppressed because it is too large Load diff

View file

@ -2012,12 +2012,16 @@ function hotpot_adjust_response_field($quiztype, &$question, &$num, &$name, &$da
break; break;
case 'jcloze': case 'jcloze':
$question->type = HOTPOT_JCLOZE; $question->type = HOTPOT_JCLOZE;
$question->name = $num; if (is_numeric($num)) {
$question->name = $num;
}
switch ($name) { switch ($name) {
case 'penalties': case 'penalties':
$name = 'checks'; if (is_numeric($num)) {
if (is_numeric($data)) { $name = 'checks';
$data++; if (is_numeric($data)) {
$data++;
}
} }
break; break;
case 'clue_shown': case 'clue_shown':