diff --git a/showanswers.php b/showanswers.php
index 1a12ad7..8bf701d 100644
--- a/showanswers.php
+++ b/showanswers.php
@@ -222,7 +222,12 @@ function game_showanswers_question( $game, $context) {
$showcategories = ($game->gamekind == 'bookquiz');
$order = ($showcategories ? 'category,questiontext' : 'questiontext');
- game_showanswers_question_select( $game, '{question} q', $select, '*', $order, $showcategories, $game->course, $context);
+ $table = '{question} q';
+ if ($game->gamekind == 'millionaire') {
+ $select .= " AND qtype='multichoice' AND qmo.single=1 AND qmo.questionid=q.id";
+ $table = '{question} q, {qtype_multichoice_options} qmo';
+ }
+ game_showanswers_question_select( $game, $table, $select, '*', $order, $showcategories, $game->course, $context);
}
/**
@@ -330,7 +335,7 @@ function game_showanswers_question_select( $game, $table, $select, $fields, $ord
echo '
';
echo "wwwroot}/question/question.php?inpopup=1&id=$question->id&courseid=$courseid\" target=\"_blank\">";
- echo "pix_url('t/edit')."\" alt=\"Edit\" /> ";
+ echo " ";
echo game_filterquestion(str_replace( array( "\'", '\"'), array( "'", '"'),
$question->questiontext), $question->id, $context->id, $game->course);
diff --git a/version.php b/version.php
index 41646e6..507d0bd 100644
--- a/version.php
+++ b/version.php
@@ -35,10 +35,10 @@ if (!isset( $plugin)) {
}
$plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics).
-$plugin->version = 2017062801; // The current module version (Date: YYYYMMDDXX).
+$plugin->version = 2017062901; // The current module version (Date: YYYYMMDDXX).
$plugin->requires = 2010112400; // Requires Moodle 2.0.
$plugin->cron = 0; // Period for cron to check this module (secs).
-$plugin->release = '2017-06-28';
+$plugin->release = '2017-06-29';
$plugin->maturity = MATURITY_STABLE;
if ($useplugin != 2) {
|