mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
"MDL-14129, fix print_error"
This commit is contained in:
parent
02dc703298
commit
b121a4eed9
8 changed files with 23 additions and 20 deletions
|
@ -19,7 +19,7 @@ if (!defined('AUTOGROUP_MIN_RATIO')) {
|
|||
$courseid = required_param('courseid', PARAM_INT);
|
||||
|
||||
if (!$course = get_record('course', 'id', $courseid)) {
|
||||
print_error('invalidcourse');
|
||||
print_error('invalidcourseid');
|
||||
}
|
||||
|
||||
// Make sure that the user has permissions to manage groups.
|
||||
|
@ -82,7 +82,7 @@ if ($editform->is_cancelled()) {
|
|||
case 'idnumber':
|
||||
$orderby = 'idnumber'; break;
|
||||
default:
|
||||
print_error('Unknown ordering');
|
||||
print_error('unknoworder');
|
||||
}
|
||||
$users = groups_get_potential_members($data->courseid, $data->roleid, $orderby);
|
||||
$usercnt = count($users);
|
||||
|
@ -255,4 +255,4 @@ if($preview !== '') {
|
|||
}
|
||||
|
||||
print_footer($course);
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue