Merge branch 'MDL-82697-405' of https://github.com/paulholden/moodle into MOODLE_405_STABLE

This commit is contained in:
Huong Nguyen 2024-12-19 10:21:21 +07:00
commit e9cece4b1c
No known key found for this signature in database
GPG key ID: 40D88AB693A3E72A

View file

@ -316,7 +316,7 @@ class stateactions {
$maxsections = $format->get_max_sections();
if ($lastsectionnumber >= $maxsections) {
throw new moodle_exception('maxsectionslimit', 'moodle', $maxsections);
throw new moodle_exception('maxsectionslimit', 'moodle', '', $maxsections);
}
$modinfo = get_fast_modinfo($course);