diff --git a/locallib.php b/locallib.php index 9581374..74367e6 100644 --- a/locallib.php +++ b/locallib.php @@ -44,7 +44,7 @@ $gamegrademethod = array ( GAME_GRADEMETHOD_HIGHEST => get_string("gradehighest" GAME_GRADEMETHOD_FIRST => get_string("attemptfirst", "game"), GAME_GRADEMETHOD_LAST => get_string("attemptlast", "game")); -define( "CONST_GAME_TRIES_REPETITION", "3"); +define( "CONST_GAME_TRIES_REPETITION", "5"); /** * Returns the version of Moodle. diff --git a/showanswers.php b/showanswers.php index 383e29d..0272ef0 100644 --- a/showanswers.php +++ b/showanswers.php @@ -240,7 +240,7 @@ function game_showanswers_question( $game, $context) { } else if ( ($gamekind == 'hangman') or ($gamekind == 'cryptex') or ($gamekind == 'cross')) { $select .= " AND q.qtype = 'shortanswer'"; } - game_showanswers_question_select( $game, $table, $select, '*', $order, $showcategories, $game->course, $context); + game_showanswers_question_select( $game, $table, $select, 'q.*', $order, $showcategories, $game->course, $context); } /** diff --git a/version.php b/version.php index fd73a3b..e1768e0 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 = 2017070502; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2017070601; // 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-07-05'; +$plugin->release = '2017-07-06'; $plugin->maturity = MATURITY_STABLE; if ($useplugin != 2) {