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;
case 'jcloze':
$question->type = HOTPOT_JCLOZE;
$question->name = $num;
if (is_numeric($num)) {
$question->name = $num;
}
switch ($name) {
case 'penalties':
$name = 'checks';
if (is_numeric($data)) {
$data++;
if (is_numeric($num)) {
$name = 'checks';
if (is_numeric($data)) {
$data++;
}
}
break;
case 'clue_shown':