mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
"MDL-14129, fix print_error"
This commit is contained in:
parent
d3b7ea93de
commit
1fdbcd2f1b
2 changed files with 3 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue