Skip to content
Browse files

Merge branch 'MDL-37642-m23' of git://github.com/sammarshallou/moodle…

… into MOODLE_23_STABLE
  • Loading branch information...
2 parents 76cab14 + cb3a696 commit 9aa0a709cd985f8bd61ee521c02715d8233cfde1 @stronk7 stronk7 committed Mar 5, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 course/format/renderer.php
View
6 course/format/renderer.php
@@ -414,7 +414,11 @@ protected function section_availability_message($section, $canviewhidden) {
$o .= $section->availableinfo;
$o .= html_writer::end_tag('div');
} else if ($canviewhidden && !empty($CFG->enableavailability) && $section->visible) {
- $ci = new condition_info_section($section);
+ // The CONDITION_MISSING_EXTRATABLE is to hide a performance warning that
+ // only applies in 2.3 because of the way we construct section objects on
+ // the FIRST view of a course. In future views, we shouldn't have anything
+ // missing.
+ $ci = new condition_info_section($section, CONDITION_MISSING_EXTRATABLE);
$fullinfo = $ci->get_full_information();
if ($fullinfo) {
$o .= html_writer::start_tag('div', array('class' => 'availabilityinfo'));

0 comments on commit 9aa0a70

Please sign in to comment.
Something went wrong with that request. Please try again.