"MDL-14129, fix print_error"

This commit is contained in:
dongsheng 2008-05-14 06:15:56 +00:00
parent 02dc703298
commit b121a4eed9
8 changed files with 23 additions and 20 deletions

View file

@ -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);
?>
?>