Browse Source

Fix: Grading method now works ok

MOODLE_20_STABLE
bdaloukas 12 years ago
parent
commit
6f8d9703a5
  1. 8
      mod_form.php
  2. 4
      version.php

8
mod_form.php

@ -166,10 +166,10 @@ class mod_game_mod_form extends moodleform_mod {
$mform->addElement('text', 'grade', get_string( 'grademax', 'grades'), array('size' => 4)); $mform->addElement('text', 'grade', get_string( 'grademax', 'grades'), array('size' => 4));
$mform->setType('grade', PARAM_INT); $mform->setType('grade', PARAM_INT);
$gradingtypeoptions = array(); $gradingtypeoptions = array();
$gradingtypeoptions[0] = get_string('gradehighest','game'); $gradingtypeoptions[ GAME_GRADEHIGHEST] = get_string('gradehighest','game');
$gradingtypeoptions[1] = get_string('gradeaverage','game'); $gradingtypeoptions[ GAME_GRADEAVERAGE] = get_string('gradeaverage','game');
$gradingtypeoptions[2] = get_string('attemptfirst','game'); $gradingtypeoptions[ GAME_ATTEMPTFIRST] = get_string('attemptfirst','game');
$gradingtypeoptions[3] = get_string('attemptlast','game'); $gradingtypeoptions[ GAME_ATTEMPTLAST] = get_string('attemptlast','game');
$mform->addElement('select', 'grademethod', get_string('grademethod','game'), $gradingtypeoptions); $mform->addElement('select', 'grademethod', get_string('grademethod','game'), $gradingtypeoptions);
// Open and close dates. // Open and close dates.

4
version.php

@ -11,7 +11,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$module->component = 'mod_game'; // Full name of the plugin (used for diagnostics) $module->component = 'mod_game'; // Full name of the plugin (used for diagnostics)
$module->version = 2013071501; // The current module version (Date: YYYYMMDDXX) $module->version = 2013071601; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2010112400; // Requires Moodle 2.0 $module->requires = 2010112400; // Requires Moodle 2.0
$module->cron = 0; // Period for cron to check this module (secs) $module->cron = 0; // Period for cron to check this module (secs)
$module->release = '3.7.15'; $module->release = '3.7.16';

Loading…
Cancel
Save