diff --git a/index.php b/index.php index c77964e..db1210f 100755 --- a/index.php +++ b/index.php @@ -30,7 +30,7 @@ /// Print the header $PAGE->set_url('/mod/game/index.php', array('id'=>$id)); -$coursecontext = get_context_instance(CONTEXT_COURSE, $id); +$coursecontext = game_get_context_course_instance( $id); $PAGE->set_pagelayout('incourse'); add_to_log($course->id, "game", "view all", "index.php?id=$course->id", ""); @@ -58,6 +58,8 @@ echo $OUTPUT->header(); $strweek = get_string("week"); $strtopic = get_string("topic"); + $table = new html_table(); + if ($course->format == "weeks") { $table->head = array ($strweek, $strname); $table->align = array ("center", "left"); @@ -87,7 +89,7 @@ echo $OUTPUT->header(); echo "
"; - print_table($table); + echo html_writer::table($table); /// Finish the page diff --git a/showanswers.php b/showanswers.php index 9ff4782..d55731a 100755 --- a/showanswers.php +++ b/showanswers.php @@ -342,7 +342,7 @@ function game_showanswers_glossary( $game) return; } - //Show repetiotions of questions + //Show repetitions of questions $table = "{glossary_entries} ge, {game_repetitions} gr"; $select = "glossaryid={$game->glossaryid} AND gr.glossaryentryid=ge.id AND gr.gameid=".$game->id; $userid = optional_param('userid',0,PARAM_INT); diff --git a/version.php b/version.php index ac9eaf1..3571479 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 = 2014011401; // The current module version (Date: YYYYMMDDXX) +$module->version = 2014012001; // 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.13.14'; +$module->release = '3.13.20';