From fecca79d5a90b16994ed35815ea5f0c6e4b2c151 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Fri, 5 Dec 2014 09:22:02 +0800 Subject: [PATCH] MDL-31822 course: Formatting the section name --- index.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index aea0b2bbb1d89..1d9e81642ddd8 100644 --- a/index.php +++ b/index.php @@ -130,11 +130,17 @@ echo '

'; } + $context = context_course::instance(SITEID); + + // If the section name is set we show it. if (!is_null($section->name)) { - echo $OUTPUT->heading($section->name, 1, 'sectionname'); + echo $OUTPUT->heading( + format_string($section->name, true, array('context' => $context)), + 2, + 'sectionname' + ); } - $context = context_course::instance(SITEID); $summarytext = file_rewrite_pluginfile_urls($section->summary, 'pluginfile.php', $context->id, 'course', 'section', $section->id); $summaryformatoptions = new stdClass(); $summaryformatoptions->noclean = true;