Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 575826c730746f86c4ef05c231c1ec7cbab791cc 1 parent cbf4499
@andrewnicols andrewnicols authored danpoltawski committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 course/format/renderer.php
View
7 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();
-
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.