Browse Source

Fix problems on backup/restore

MOODLE_20_STABLE
bdaloukas 8 years ago
parent
commit
832e080056
  1. 2
      cross/cross_class.php
  2. 2
      mod_form.php
  3. 2
      showanswers.php
  4. 2
      version.php

2
cross/cross_class.php

@ -792,7 +792,7 @@ class Cross
$legendh = array();
if ($game->glossaryid) {
$sql = "SELECT id,course FROM {$CFG->prefix}glossary WHERE id={$game->glossaryid}";
$sql = "SELECT id,course FROM {$CFG->prefix}glossary WHERE id={$game->glossaryid}";
$glossary = $DB->get_record_sql( $sql);
$cmglossary = get_coursemodule_from_instance('glossary', $game->glossaryid, $glossary->course);
$contextglossary = game_get_context_module_instance( $cmglossary->id);

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
showanswers.php

@ -475,7 +475,7 @@ function game_showanswers_glossary( $game) {
if ($game->param8 == 0) { // Not allowed -.
if (!( strpos( $question->concept, '-') === false)) {
continue;
}
}
}
echo '<tr>';

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