This commit is contained in:
PMKuipers 2024-11-01 12:43:44 +01:00
parent 8c1be03e5d
commit 9988ed1a3d
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ class studyplan_editform extends formbase {
$contextlist = [];
// Add system if the user has permissions.
if (has_all_capabilities([courseservice::CAP_EDIT,'moodle/category:viewcourselist'], \context_system::instance())) {
if (has_all_capabilities([courseservice::CAP_EDIT, 'moodle/category:viewcourselist'], \context_system::instance())) {
$contextlist[1] = get_string("coresystem");
}
// Add any other contexts the user has access to.

View File

@ -80,7 +80,7 @@ class randomimage {
$color = imagecolorallocatealpha($im, ...$this->random_color_alpha());
$numpoints = \random_int(3, $maxpts);
$pts = $this->random_pts($numpoints);
imagefilledpolygon($im, $pts, $color);
imagefilledpolygon($im, $pts, $numpoints, $color);
}
/**