Browse Source

Fix mod_form, show_answers: show numbers of entries in each glossary and question category

MOODLE_20_STABLE
bdaloukas 8 years ago
parent
commit
4fbea1a66a
  1. 4
      CHANGES.md
  2. 1
      mod_form.php
  3. 8
      showanswers.php
  4. 2
      version.php

4
CHANGES.md

@ -1,3 +1,7 @@
Changes in version 2017-06-30 (2017063002)
- in mod_form.php shows the correct numbers of correspondings questions/glossaryentries
- in showanswrs.php shows the correspondings questions/glossaryentries
Changes in version 2017-06-27 (20170627) Changes in version 2017-06-27 (20170627)
- Fix conversation of columns (cols,rows) from string to int - Fix conversation of columns (cols,rows) from string to int

1
mod_form.php

@ -448,6 +448,7 @@ class mod_game_mod_form extends moodleform_mod {
* Computes the categories of all question of the current course; * Computes the categories of all question of the current course;
* *
* @param int $courseid * @param int $courseid
* @param string $gamekind
* *
* @return array of question categories * @return array of question categories
*/ */

8
showanswers.php

@ -518,8 +518,12 @@ function game_showanswers_bookquiz( $game, $context) {
"bc.pagenum,questiontext", $showcategories, $game->course, $context); "bc.pagenum,questiontext", $showcategories, $game->course, $context);
} }
function game_showanswers_extra_millionaire( $game) /**
{ * Show extra info for answers in millionaire
*
* @param stdClass $game
*/
function game_showanswers_extra_millionaire( $game) {
global $CFG, $DB; global $CFG, $DB;
if ($game->questioncategoryid == 0) { if ($game->questioncategoryid == 0) {

2
version.php

@ -35,7 +35,7 @@ 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 = 2017063001; // The current module version (Date: YYYYMMDDXX). $plugin->version = 2017063002; // 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-06-30'; $plugin->release = '2017-06-30';

Loading…
Cancel
Save