MDL-65853 format_base: Labels counted in section activity summary.

This commit is contained in:
Gareth Barnard 2019-06-11 15:32:54 +01:00
parent 7ec1804935
commit 5f3d948aaf
No known key found for this signature in database
GPG Key ID: B3F86F2CCEC3E475

View File

@ -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;