From 7a02bffd81779ca74791cfef676266a9a10124c8 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 3 Nov 2009 13:06:59 -0500 Subject: [PATCH] Adding session ID to course link in breadcrumb --- main/inc/banner.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/inc/banner.inc.php b/main/inc/banner.inc.php index 245cfaa031..b4fac0b039 100644 --- a/main/inc/banner.inc.php +++ b/main/inc/banner.inc.php @@ -8,6 +8,8 @@ * @package dokeos.include ============================================================================== */ +$session_id = api_get_session_id(); +$session_name = api_get_session_name($my_session_id); ?>
@@ -120,7 +122,7 @@ if ((api_get_setting('showonline','world') == "true" AND !$_user['user_id']) OR // Display the who's online for the course if (is_array($_course) AND api_get_setting('showonline','course') == "true" AND isset($_course['sysCode'])) { - echo "($number_online_in_course ".get_lang('InThisCourse').")"; + echo "($number_online_in_course ".get_lang('InThisCourse').")"; } echo ''; } @@ -337,11 +339,9 @@ if ($_self == 'admin_intro_edition_page') $navigation = array(); // part 1: Course Homepage. If we are in a course then the first breadcrumb is a link to the course homepage //hide_course_breadcrumb the parameter has been added to hide the name of the course, that appeared in the default $interbreadcrumb -$session_id = api_get_session_id(); -$session_name = api_get_session_name($my_session_id); $my_session_name= ($session_name==null) ? '' : ' ('.$session_name.')'; if (isset ($_cid) and $_cid!=-1 and isset($_course) and !isset($_GET['hide_course_breadcrumb'])) { - $navigation_item['url'] = $web_course_path . $_course['path'].'/index.php'; + $navigation_item['url'] = $web_course_path . $_course['path'].'/index.php'.(!empty($session_id)?'?id_session='.$session_id:''); switch(api_get_setting('breadcrumbs_course_homepage')) { case 'get_lang': $navigation_item['title'] = get_lang('CourseHomepageLink');