MDL-82697 courseformat: fix exception arguments for section limit.

Co-authored-by: James C <[email protected]>
This commit is contained in:
Paul Holden
2024-12-11 17:47:02 +00:00
co-authored by James C
parent 02e8cebdd2
commit 7cdb3538eb
+1 -1
View File
@@ -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);