$id = required_param('id', PARAM_INT); // Course id
if (! $course = get_record('course', 'id', $id) ) {
- print_error("That's an invalid course id");
+ print_error('invalidcourseid');
}
require_login($course->id);
if (!has_capability('moodle/course:managegroups', $context)) {
- print_error("You do not have the required permissions to manage groups.");
+ print_error('nopermissiontomanagegroup');
}
//if (!confirm_sesskey()) {
$string['noparticipatorycms'] = 'Sorry, but you have no participatory course modules to report on.';
$string['nopermissions'] = 'Sorry, but you do not currently have permissions to do that ($a)';
$string['nopermissiontoviewpage'] = 'You are not allowed to look at this page';
+$string['nopermissiontomanagegroup'] = 'You do not have the required permissions to manage groups.';
$string['nosite'] = 'No sites';
$string['nositeid'] = 'No site ID';
$string['nostatstodisplay'] = 'There is no available data to display, sorry.';