|
|
|
@ -208,7 +208,17 @@ if ($form->validate()) { |
|
|
|
|
include $file_to_include; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$course_info = CourseManager::create_course($course); |
|
|
|
|
$courseInfo = CourseManager::create_course($course); |
|
|
|
|
if ($courseInfo && isset($courseInfo['course_public_url'])) { |
|
|
|
|
Display::addFlash( |
|
|
|
|
Display::return_message( |
|
|
|
|
get_lang('Added').' '. |
|
|
|
|
Display::url($courseInfo['course_public_url'], $courseInfo['course_public_url']), |
|
|
|
|
'confirmation', |
|
|
|
|
false |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
header('Location: course_list.php'); |
|
|
|
|
exit; |
|
|
|
|