Merge branch 'MDL-37642-m23' of git://github.com/sammarshallou/moodle into MOODLE_23_STABLE
This commit is contained in:
@@ -414,7 +414,11 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
|
||||
$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'));
|
||||
|
||||
Reference in New Issue
Block a user