MDL-25436 workshop: fixed deprecated function call
authorDavid Mudrak <david.mudrak@gmail.com>
Mon, 29 Nov 2010 12:23:42 +0000 (12:23 +0000)
committerDavid Mudrak <david.mudrak@gmail.com>
Mon, 29 Nov 2010 12:23:42 +0000 (12:23 +0000)
Credit goes to Paul Ortman for the patch.

mod/workshop/index.php

index 2392cef..36c21f8 100644 (file)
@@ -71,6 +71,7 @@ $timenow  = time();
 $strsectionname  = get_string('sectionname', 'format_'.$course->format);
 $strname  = get_string('name');
 
+$table = new html_table();
 if ($usesections) {
     $table->head  = array ($strsectionname, $strname);
     $table->align = array ('center', 'left');
@@ -96,7 +97,7 @@ foreach ($workshops as $workshop) {
 }
 
 echo $OUTPUT->heading(get_string('modulenameplural', 'workshop'), 2);
-print_table($table);
+echo html_writer::table($table);
 
 /// Finish the page