Browse Source

Fix: showanswers.php shows the correct questions

MOODLE_20_STABLE
Vasilis Daloukas 8 years ago
parent
commit
5eb4ad0378
  1. 2
      locallib.php
  2. 2
      showanswers.php
  3. 4
      version.php

2
locallib.php

@ -44,7 +44,7 @@ $gamegrademethod = array ( GAME_GRADEMETHOD_HIGHEST => get_string("gradehighest"
GAME_GRADEMETHOD_FIRST => get_string("attemptfirst", "game"), GAME_GRADEMETHOD_FIRST => get_string("attemptfirst", "game"),
GAME_GRADEMETHOD_LAST => get_string("attemptlast", "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. * Returns the version of Moodle.

2
showanswers.php

@ -240,7 +240,7 @@ function game_showanswers_question( $game, $context) {
} else if ( ($gamekind == 'hangman') or ($gamekind == 'cryptex') or ($gamekind == 'cross')) { } else if ( ($gamekind == 'hangman') or ($gamekind == 'cryptex') or ($gamekind == 'cross')) {
$select .= " AND q.qtype = 'shortanswer'"; $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);
} }
/** /**

4
version.php

@ -35,10 +35,10 @@ if (!isset( $plugin)) {
} }
$plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics). $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->requires = 2010112400; // Requires Moodle 2.0.
$plugin->cron = 0; // Period for cron to check this module (secs). $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; $plugin->maturity = MATURITY_STABLE;
if ($useplugin != 2) { if ($useplugin != 2) {

Loading…
Cancel
Save