From a7aae18cf67d66096f912c32ee6badbcfa6b5ea2 Mon Sep 17 00:00:00 2001 From: David Balch Date: Wed, 29 Feb 2012 10:03:13 +0000 Subject: [PATCH] MDL-31822 course: Show custom Section name on Front page. --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index 2a19e45c5a5..aea0b2bbb1d 100644 --- a/index.php +++ b/index.php @@ -130,6 +130,10 @@ echo '

'; } + if (!is_null($section->name)) { + echo $OUTPUT->heading($section->name, 1, 'sectionname'); + } + $context = context_course::instance(SITEID); $summarytext = file_rewrite_pluginfile_urls($section->summary, 'pluginfile.php', $context->id, 'course', 'section', $section->id); $summaryformatoptions = new stdClass();