mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
"MDL-14129, fix print_error call"
This commit is contained in:
parent
d07fe1a930
commit
a939f681bb
11 changed files with 50 additions and 50 deletions
|
@ -7,7 +7,7 @@
|
|||
$id = required_param('id', PARAM_INT); // course
|
||||
|
||||
if (! $course = get_record("course", "id", $id)) {
|
||||
print_error("Course ID is incorrect");
|
||||
print_error('invalidcourseid');
|
||||
}
|
||||
|
||||
require_course_login($course);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue