diff --git a/format.php b/format.php
index 7efc20d..405540b 100644
--- a/format.php
+++ b/format.php
@@ -121,7 +121,7 @@
//Insert the section 0
$section = 0;
- $thissection = $sections[$section];
+ $thissection = $modinfo->get_section_info($section);
if ($thissection->summary or $thissection->sequence or $PAGE->user_is_editing())
{
@@ -273,7 +273,7 @@
echo '
';
echo '';
- echo $tabtopicsrenderer->section_hidden($section);
+ echo $tabtopicsrenderer->section_hidden($section, $course);
echo '
';
echo '';
diff --git a/renderer.php b/renderer.php
index 9997fdc..0e95035 100644
--- a/renderer.php
+++ b/renderer.php
@@ -108,8 +108,8 @@ public function section_availability_message($section, $canViewHidden) {
*
* @param type $section
*/
- public function section_hidden($section) {
- echo parent::section_hidden($section);
+ public function section_hidden($section, $courseorid = null) {
+ echo parent::section_hidden($section, $courseorid);
}
}