mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
Merge branch 'MDL-25478' of git://git.luns.net.uk/moodle
This commit is contained in:
commit
34e54bbb62
@ -42,12 +42,14 @@ if (!empty($return)) {
|
||||
}
|
||||
|
||||
if (!empty($add)) {
|
||||
$url->param('add', $add);
|
||||
$PAGE->set_url($url);
|
||||
|
||||
$section = required_param('section', PARAM_INT);
|
||||
$course = required_param('course', PARAM_INT);
|
||||
|
||||
$url->param('add', $add);
|
||||
$url->param('section', $section);
|
||||
$url->param('course', $course);
|
||||
$PAGE->set_url($url);
|
||||
|
||||
$course = $DB->get_record('course', array('id'=>$course), '*', MUST_EXIST);
|
||||
$module = $DB->get_record('modules', array('name'=>$add), '*', MUST_EXIST);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user