|
|
|
@ -1177,9 +1177,8 @@ function api_get_course_info($course_code = null) { |
|
|
|
|
$_course['unubscribe_allowed'] = $course_data['unsubscribe' ]; |
|
|
|
|
|
|
|
|
|
$_course['department_name'] = $course_data['department_name']; |
|
|
|
|
$_course['department_url'] = $course_data['department_url' ]; |
|
|
|
|
$_course['legal_agreement'] = $course_data['legal_agreement' ]; |
|
|
|
|
$_course['show_score'] = $course_data['show_score']; //used in the work tool |
|
|
|
|
$_course['department_url'] = $course_data['department_url' ]; |
|
|
|
|
$_course['show_score'] = $course_data['show_score']; //used in the work tool |
|
|
|
|
|
|
|
|
|
// The real_id is an integer. It is mandatory for future implementations. |
|
|
|
|
$_course['real_id' ] = $course_data['id' ]; |
|
|
|
@ -1253,8 +1252,7 @@ function api_get_course_info_by_id($id = null) { |
|
|
|
|
$_course['real_id' ] = $course_data['id' ]; |
|
|
|
|
$_course['title' ] = $course_data['title' ]; |
|
|
|
|
$_course['course_language'] = $course_data['course_language']; |
|
|
|
|
$_course['activate_legal'] = $course_data['activate_legal']; |
|
|
|
|
$_course['legal_agreement'] = $course_data['legal_agreement']; |
|
|
|
|
$_course['activate_legal'] = $course_data['activate_legal']; |
|
|
|
|
$_course['show_score'] = $course_data['show_score']; //used in the work tool |
|
|
|
|
|
|
|
|
|
if (file_exists(api_get_path(SYS_COURSE_PATH).$course_data['directory'].'/course-pic85x85.png')) { |
|
|
|
|