"MDL-14129, fix print_error call under course/, see tracker"

This commit is contained in:
dongsheng 2008-05-07 06:02:51 +00:00
parent 211c6890c5
commit ba6018a902
17 changed files with 146 additions and 117 deletions

View file

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