Skip to content

Commit

Permalink
MDL-31822 course: Show custom Section name on Front page.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Balch authored and David Monllao committed Dec 8, 2014
1 parent 2d84748 commit a7aae18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@
echo '</font></p>';
}

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();
Expand Down

0 comments on commit a7aae18

Please sign in to comment.