From 5f3d948aaf85605df9d59822a193f3559b76ffae Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Tue, 11 Jun 2019 15:32:54 +0100 Subject: [PATCH] MDL-65853 format_base: Labels counted in section activity summary. --- course/format/renderer.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/course/format/renderer.php b/course/format/renderer.php index ffdd6dbdb14..a33ecad749f 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -460,11 +460,6 @@ abstract class format_section_renderer_base extends plugin_renderer_base { foreach ($modinfo->sections[$section->section] as $cmid) { $thismod = $modinfo->cms[$cmid]; - if ($thismod->modname == 'label') { - // Labels are special (not interesting for students)! - continue; - } - if ($thismod->uservisible) { if (isset($sectionmods[$thismod->modname])) { $sectionmods[$thismod->modname]['name'] = $thismod->modplural;