mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
"MDL-14129, fix print_error call under course/, see tracker"
This commit is contained in:
parent
211c6890c5
commit
ba6018a902
17 changed files with 146 additions and 117 deletions
|
@ -7,11 +7,11 @@
|
|||
$id = required_param('id',PARAM_INT); // Week ID
|
||||
|
||||
if (! $section = get_record("course_sections", "id", $id)) {
|
||||
print_error("Course section is incorrect");
|
||||
print_error("sectionnotexist");
|
||||
}
|
||||
|
||||
if (! $course = get_record("course", "id", $section->course)) {
|
||||
print_error("Could not find the course!");
|
||||
print_error("invalidcourseid");
|
||||
}
|
||||
|
||||
require_login($course->id);
|
||||
|
@ -25,7 +25,7 @@
|
|||
$timenow = time();
|
||||
|
||||
if (! set_field("course_sections", "summary", $form->summary, "id", $section->id)) {
|
||||
print_error("Could not update the summary!");
|
||||
print_error("cannotupdatesummary");
|
||||
}
|
||||
|
||||
add_to_log($course->id, "course", "editsection", "editsection.php?id=$section->id", "$section->section");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue