diff --git a/mod_form.php b/mod_form.php index c68fd1e..82dd086 100755 --- a/mod_form.php +++ b/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->setType('grade', PARAM_INT); $gradingtypeoptions = array(); - $gradingtypeoptions[0] = get_string('gradehighest','game'); - $gradingtypeoptions[1] = get_string('gradeaverage','game'); - $gradingtypeoptions[2] = get_string('attemptfirst','game'); - $gradingtypeoptions[3] = get_string('attemptlast','game'); + $gradingtypeoptions[ GAME_GRADEHIGHEST] = get_string('gradehighest','game'); + $gradingtypeoptions[ GAME_GRADEAVERAGE] = get_string('gradeaverage','game'); + $gradingtypeoptions[ GAME_ATTEMPTFIRST] = get_string('attemptfirst','game'); + $gradingtypeoptions[ GAME_ATTEMPTLAST] = get_string('attemptlast','game'); $mform->addElement('select', 'grademethod', get_string('grademethod','game'), $gradingtypeoptions); // Open and close dates. diff --git a/version.php b/version.php index ef67200..fb78b65 100755 --- a/version.php +++ b/version.php @@ -11,7 +11,7 @@ defined('MOODLE_INTERNAL') || die(); $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->cron = 0; // Period for cron to check this module (secs) -$module->release = '3.7.15'; +$module->release = '3.7.16';