summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1a5a5b0)
$id = required_param('id',PARAM_INT); // Week ID
$id = required_param('id',PARAM_INT); // Week ID
if (! $section = get_record("course_sections", "id", $id)) {
error("Course section is incorrect");
}
if (! $section = get_record("course_sections", "id", $id)) {
error("Course section is incorrect");
}
error("Could not find the course!");
}
error("Could not find the course!");
}
+ require_login($course->id);
+
require_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id));
/// If data submitted, then process and store.
require_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id));
/// If data submitted, then process and store.