Add message with course link

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent a4075d3933
commit d6af6d89d9
  1. 12
      main/admin/course_add.php

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

Loading…
Cancel
Save