Permalink
Browse files

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

Even if not in single section mode.
  • Loading branch information...
danpoltawski authored and stronk7 committed Aug 10, 2012
1 parent 92886a8 commit 1c1246ec28355e36c1366751e32befc50e2080c4
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 1c1246e

Please sign in to comment.