Browse Source

Fix problems on backup/restore

MOODLE_20_STABLE
bdaloukas 8 years ago
parent
commit
832e080056
  1. 2
      mod_form.php
  2. 2
      version.php

2
mod_form.php

@ -102,7 +102,7 @@ class mod_game_mod_form extends moodleform_mod {
"WHERE course={$COURSE->id} OR globalglossary=1 ORDER BY globalglossary DESC,name";
if ($recs = $DB->get_records_sql($sql)) {
foreach ($recs as $rec) {
if( ($rec->globalglossary != 0) and ($rec->course != $COURSE->id)) {
if (($rec->globalglossary != 0) and ($rec->course != $COURSE->id)) {
$rec->name = '*'.$rec->name;
}
$a[$rec->id] = $rec->name;

2
version.php

@ -35,7 +35,7 @@ if (!isset( $plugin)) {
}
$plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics).
$plugin->version = 2017070604; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2017070605; // 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-06';

Loading…
Cancel
Save