Permalink
Browse files

MDL-34829 course - allow directly linked sections to work.

Even if not in single section mode.
  • Loading branch information...
1 parent e6aac11 commit ef38e70c410a0bd8e59cb414c55a1501dadab7f1 @danpoltawski danpoltawski committed Aug 10, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 course/format/topics/format.php
  2. +1 −1 course/format/weeks/format.php
@@ -46,7 +46,7 @@
$renderer = $PAGE->get_renderer('format_topics');
-if (!empty($displaysection) && $course->coursedisplay == COURSE_DISPLAY_MULTIPAGE) {
+if (!empty($displaysection)) {
$renderer->print_single_section_page($course, $sections, $mods, $modnames, $modnamesused, $displaysection);
} else {
$renderer->print_multiple_section_page($course, $sections, $mods, $modnames, $modnamesused);
@@ -39,7 +39,7 @@
$renderer = $PAGE->get_renderer('format_weeks');
-if (!empty($displaysection) && $course->coursedisplay == COURSE_DISPLAY_MULTIPAGE) {
+if (!empty($displaysection)) {
$renderer->print_single_section_page($course, $sections, $mods, $modnames, $modnamesused, $displaysection);
} else {
$renderer->print_multiple_section_page($course, $sections, $mods, $modnames, $modnamesused);

0 comments on commit ef38e70

Please sign in to comment.