From 12ffbefe4aea85db4b1bee870e119c0b0ef03717 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 2f94041f734..c474790d4b8 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -488,11 +488,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;