Merge branch 'MDL-53904-master' of git://github.com/marinaglancy/moodle

This commit is contained in:
Dan Poltawski 2016-05-02 10:16:27 +01:00
commit 1019a8f1ca

View File

@ -3209,6 +3209,7 @@ class course_request {
$data->visible = $courseconfig->visible;
$data->visibleold = $data->visible;
$data->lang = $courseconfig->lang;
$data->enablecompletion = $courseconfig->enablecompletion;
$course = create_course($data);
$context = context_course::instance($course->id, MUST_EXIST);