Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions format.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down Expand Up @@ -273,7 +273,7 @@
echo '<div class="right side"></div>';

echo '<div class="content">';
echo $tabtopicsrenderer->section_hidden($section);
echo $tabtopicsrenderer->section_hidden($section, $course);
echo '</div>';
echo '</div>';

Expand Down
4 changes: 2 additions & 2 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}