|
|
|
@ -1096,7 +1096,7 @@ class CourseHome |
|
|
|
|
/* Link to the Course homepage */ |
|
|
|
|
|
|
|
|
|
$navigation_items['home']['image'] = 'home.gif'; |
|
|
|
|
$navigation_items['home']['link'] = api_get_path(REL_COURSE_PATH).Security::remove_XSS($_SESSION['_course']['path']).'/index.php'; |
|
|
|
|
$navigation_items['home']['link'] = api_get_path(WEB_CODE_PATH).Security::remove_XSS($_SESSION['_course']['path']).'/index.php'; |
|
|
|
|
$navigation_items['home']['name'] = get_lang('CourseHomepageLink'); |
|
|
|
|
|
|
|
|
|
$sql_menu_query = "SELECT * FROM $course_tools_table |
|
|
|
@ -1106,7 +1106,7 @@ class CourseHome |
|
|
|
|
while ($row = Database::fetch_array($sql_result)) { |
|
|
|
|
$navigation_items[$row['id']] = $row; |
|
|
|
|
if (stripos($row['link'], 'http://') === false && stripos($row['link'], 'https://') === false) { |
|
|
|
|
$navigation_items[$row['id']]['link'] = api_get_path(REL_CODE_PATH).$row['link']; |
|
|
|
|
$navigation_items[$row['id']]['link'] = api_get_path(WEB_CODE_PATH).$row['link']; |
|
|
|
|
$navigation_items[$row['id']]['name'] = CourseHome::translate_tool_name($row); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1124,7 +1124,7 @@ class CourseHome |
|
|
|
|
if (api_get_session_id() == 0) { |
|
|
|
|
// course settings item |
|
|
|
|
$navigation_items['course_settings']['image'] = $course_setting_info['image']; |
|
|
|
|
$navigation_items['course_settings']['link'] = api_get_path(REL_CODE_PATH).'course_info/infocours.php'; |
|
|
|
|
$navigation_items['course_settings']['link'] = api_get_path(WEB_CODE_PATH).'course_info/infocours.php'; |
|
|
|
|
$navigation_items['course_settings']['name'] = $course_setting_visual_name; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|