Skip to content

Commit

Permalink
MDL-31822 course: Formatting the section name
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Dec 9, 2014
1 parent a7aae18 commit fecca79
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fecca79

Please sign in to comment.