MDL-82697 courseformat: fix exception arguments for section limit.
Co-authored-by: James C <[email protected]>
This commit is contained in:
@@ -312,7 +312,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);
|
||||
|
||||
Reference in New Issue
Block a user