Permalink
Browse files

Merge branch 'MDL-34829' of git://github.com/danpoltawski/moodle into…

… MOODLE_23_STABLE
  • Loading branch information...
2 parents 428b30c + ef38e70 commit 12445b37fc7c2acf44a093c973df4df722488b24 @stronk7 stronk7 committed Aug 14, 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 12445b3

Please sign in to comment.