From bbee9a1b045d85638292fa8695c3bb508657ce8a Mon Sep 17 00:00:00 2001 From: Vasilis Daloukas Date: Wed, 18 Jun 2014 20:03:38 +0300 Subject: [PATCH] Fix: Snakes compatibility with Moodle 1.6 --- snakes/play.php | 2 +- version.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/snakes/play.php b/snakes/play.php index 3022a3a..6ed153e 100755 --- a/snakes/play.php +++ b/snakes/play.php @@ -269,7 +269,7 @@ function game_snakes_showquestion_glossary( $id, $snakes, $query, $game) echo '\n"; $cmglossary = get_coursemodule_from_instance('glossary', $game->glossaryid, $game->course); - $contextglossary = get_context_instance(CONTEXT_MODULE, $cmglossary->id); + $contextglossary = game_get_context_module_instance( $cmglossary->id); $s = game_filterglossary(str_replace( '\"', '"', $entry->definition), $query->glossaryentryid, $contextglossary->id, $game->course); echo $s.'
'; diff --git a/version.php b/version.php index ca1a9ad..a4c8761 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 = 2014061802; // The current module version (Date: YYYYMMDDXX) +$module->version = 2014061803; // 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.18.18.2'; +$module->release = '3.18.18.3';