mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
allow "penalties" to be returned from Rottmeier Find-It quizzes
This commit is contained in:
parent
0fcac008cb
commit
0e143b3514
2 changed files with 3217 additions and 3101 deletions
File diff suppressed because it is too large
Load diff
|
@ -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':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue