"MDL-14129, fix print_error"

This commit is contained in:
dongsheng 2008-05-08 08:49:02 +00:00
parent d3b7ea93de
commit 1fdbcd2f1b
2 changed files with 3 additions and 2 deletions

View file

@ -9,7 +9,7 @@
$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);
@ -17,7 +17,7 @@
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()) {