From 65a0875b9d33be8278f17d1e318a033f8ed0b84b Mon Sep 17 00:00:00 2001 From: jmeuriss Date: Fri, 23 Aug 2019 10:09:58 +0200 Subject: [PATCH] fix issue #1 section 0 title display behaviour --- CHANGES.md | 5 +++-- renderer.php | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 907e8c6..7c9ca64 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,5 +10,6 @@ Changes * 2019-08-20 - Add toggle icon for rtl languages. * 2019-08-20 - Fix issue #12 Wrong item labels in drop targets list. -### Work in progress -* 2019-08-21 - Add section progress bar feature (initiated by Chris Kenniburg) \ No newline at end of file +### v3.7.1 +* 2019-08-21 - Add section progress bar feature (initiated by Chris Kenniburg) +* 2019-08-23 - Fix display of section 0 title to be consistent with core topics format (issue #1) \ No newline at end of file diff --git a/renderer.php b/renderer.php index 1a9114e..f3cb571 100644 --- a/renderer.php +++ b/renderer.php @@ -292,6 +292,8 @@ protected function section_header($section, $course, $onsectionpage, $sectionret $section->section . '"> ' . $sectionname . ' '; + } else if ($section->section == 0 && !is_null($section->name)) { + $o .= $this->output->heading($sectionname, 3, 'sectionname' . $classes); } // End collapse toggle.