Skip to content

Commit

Permalink
MDL-82697 courseformat: fix exception arguments for section limit.
Browse files Browse the repository at this point in the history
Co-authored-by: James C <[email protected]>
  • Loading branch information
paulholden and james-cnz committed Dec 11, 2024
1 parent 0888a6d commit 83dc191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/format/classes/stateactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function section_add(
$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);
Expand Down

0 comments on commit 83dc191

Please sign in to comment.