Browse Source

Fix: print_table deprecated

MOODLE_20_STABLE
bdaloukas 11 years ago
parent
commit
1582066f3e
  1. 6
      index.php
  2. 2
      showanswers.php
  3. 4
      version.php

6
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 "<br />";
print_table($table);
echo html_writer::table($table);
/// Finish the page

2
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);

4
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';

Loading…
Cancel
Save