Permalink
Browse files

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

  • Loading branch information...
1 parent cbf4499 commit 575826c730746f86c4ef05c231c1ec7cbab791cc @andrewnicols andrewnicols committed with danpoltawski May 3, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 course/format/renderer.php
@@ -553,6 +553,9 @@ public function print_multiple_section_page($course, $sections, $mods, $modnames
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 @@ public function print_multiple_section_page($course, $sections, $mods, $modnames
array('class' => 'addsectionlink')
);
echo html_writer::end_tag('div');
+ } else {
+ echo $this->end_section_list();
}
- echo $this->end_section_list();
-
}
}

0 comments on commit 575826c

Please sign in to comment.