Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.3.6, 2.4.3, 2.5
-
MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
wip-
MDL-39099_master -
-
Description
In '/course/format/renderer.php', there is a method which calls a private method:
protected function section_summary($section, $course, $mods) {
|
...
|
$o.= $this->section_activity_summary($section, $course, null);
|
but because 'section_activity_summary()' is defined as 'private':
private function section_activity_summary($section, $course, $mods)
|
a sibling class cannot override the protected method 'section_summary()' say to alter the way the classes are applied to the 'li' tag without resulting in the error:
Coding error detected, it must be fixed by a programmer: Unknown method called against format_topcoll_renderer :: section_activity_summary
Therefore 'section_activity_summary()' needs to be changed to:
protected function section_activity_summary($section, $course, $mods)
|
To allow the overridden protected method 'section_summary' to call it.
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-39119 Deprecate format_section_renderer_base
-
- Closed
-