1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-25 02:16:06 +02:00

MDL-31822 course: Formatting the section name

This commit is contained in:
David Monllao 2014-12-05 09:22:02 +08:00
parent a7aae18cf6
commit fecca79d5a

@ -130,11 +130,17 @@
echo '</font></p>';
}
$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;