-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.7, 2.5.2, 2.6
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
wip-
MDL-42672-master -
When visiting the resource overview page for site level you get an error message with debugging mode on.
THis is due to not checking the course format for site level in the course/format/lib.php
Invalid get_string() identifier: 'sectionname' or component 'format_site'. Perhaps you are missing $string['sectionname'] = ''; in /opt/moodle/course/format/site/lang/en/format_site.php?
line 6923 of /lib/moodlelib.php: call to debugging()
line 7615 of /lib/moodlelib.php: call to core_string_manager->get_string()
line 55 of /course/resources.php: call to get_string()
A fix for this would be to change line 55 to:
if ($course->format == 'site')
else
{ $strsectionname = get_string('sectionname', 'format_'.$course->format); }