MDL-32508 Close the topic/week ul before showing the add section link

This commit is contained in:
Andrew Robert Nicols 2012-05-03 12:38:31 +01:00 committed by Dan Poltawski
parent cbf449972f
commit 575826c730

View file

@ -553,6 +553,9 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
echo $this->stealth_section_footer();
}
echo $this->end_section_list();
// Print the add section link
$straddsection = get_string('addanadditionalsection', 'moodle');
echo html_writer::start_tag('div', array('class' => 'mdl-align'));
echo $this->output->action_link(
@ -562,9 +565,9 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
array('class' => 'addsectionlink')
);
echo html_writer::end_tag('div');
}
} else {
echo $this->end_section_list();
}
}
}