|
@ -198,11 +198,17 @@ function game_showanswers_question( $game, $context) { |
|
|
function game_showanswers_quiz( $game, $context) { |
|
|
function game_showanswers_quiz( $game, $context) { |
|
|
global $CFG; |
|
|
global $CFG; |
|
|
|
|
|
|
|
|
$select = "quiz='$game->quizid' ". |
|
|
if (game_get_moodle_version() < '02.07') { |
|
|
' AND qqi.question=q.id'. |
|
|
$select = "quiz='$game->quizid' ". |
|
|
' AND q.hidden=0'. |
|
|
' AND qqi.question=q.id'. |
|
|
game_showanswers_appendselect( $game); |
|
|
' AND q.hidden=0'. |
|
|
$table = '{question} q,{quiz_question_instances} qqi'; |
|
|
game_showanswers_appendselect( $game); |
|
|
|
|
|
$table = '{question} q,{quiz_question_instances} qqi'; |
|
|
|
|
|
} else { |
|
|
|
|
|
$select = "qs.quizid='$game->quizid' ". |
|
|
|
|
|
" AND qs.questionid=q.id"; |
|
|
|
|
|
$table = "{question} q,{quiz_slots} qs"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
game_showanswers_question_select( $game, $table, $select, 'q.*', 'category,questiontext', false, $game->course, $context); |
|
|
game_showanswers_question_select( $game, $table, $select, 'q.*', 'category,questiontext', false, $game->course, $context); |
|
|
} |
|
|
} |
|
|