From 804ef6225ef48f4fe5980bccf9be37dd7d6faf4b Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 14 Oct 2013 16:12:23 +0200 Subject: [PATCH] Fixing session history link see BT#6848 --- main/inc/lib/userportal.lib.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php index dccb96a7ce..8d33e739bb 100644 --- a/main/inc/lib/userportal.lib.php +++ b/main/inc/lib/userportal.lib.php @@ -873,17 +873,17 @@ class IndexManager { $url = api_get_path(WEB_CODE_PATH).'auth/courses.php?action=sortmycourses'; $my_account_content .= '
  • '.Display::url(get_lang('SortMyCourses'), $url, array('class' => 'sort course')).'
  • '; - //Course management + // Session history + if (isset($_GET['history']) && intval($_GET['history']) == 1) { + $my_account_content .= '
  • '.get_lang('DisplayTrainingList').'
  • '; + } else { + $my_account_content .= '
  • '.get_lang('HistoryTrainingSessions').'
  • '; + } + + // Course catalog if ($show_course_link) { if (!api_is_drh()) { $my_account_content .= '
  • '.get_lang('CourseCatalog').'
  • '; - - if (isset($_GET['history']) && intval($_GET['history']) == 1) { - $my_account_content .= '
  • '.get_lang('DisplayTrainingList').'
  • '; - } else { - $my_account_content .= '
  • '.get_lang('HistoryTrainingSessions').'
  • '; - } - } else { $my_account_content .= '
  • '.get_lang('Dashboard').'
  • '; }