Minor - Fixing session name

skala
Julio Montoya 15 years ago
parent 51612f4dae
commit 9ff445686d
  1. 1
      main/mySpace/lp_tracking.php
  2. 10
      main/mySpace/myStudents.php

@ -144,6 +144,7 @@ echo '<div class ="actions"><div align="left" style="float:left;margin-top:2px;"
</div></div>
<div class="clear"></div>';
$session_name = api_get_session_name(api_get_session_id());
$table_title = ($session_name? get_lang('Session').' : '.$session_name.' | ':'').get_lang('Course').' : '.$_course['title'].' | '.$name;
echo '<h2>'.$table_title.'</h2>';
echo '<h3>'.get_lang('ToolLearnpath').' : '.$lp_title.'</h3>';

@ -378,8 +378,14 @@ if (!empty ($_GET['student'])) {
} // end if(api_get_setting('use_session_mode')=='true')
//$table_title = ($session_name? get_lang('Session').' : '.ucfirst($session_name).' | ':'').get_lang('Course').' : '.$info_course['title'].($coachs_name?'&nbsp;|&nbsp;'.get_lang('Tutor').' : '.stripslashes($coachs_name):'');
//Hiding coach name
$table_title = ($session_name? get_lang('Session').' : '.ucfirst($session_name).' | ':'').get_lang('Course').' : '.$info_course['title'].' | '.api_get_person_name($info_user['lastname'], $info_user['firstname']);
//Hiding coach name
//$table_title = ($session_name? get_lang('Session').' : '.ucfirst($session_name).' | ':'').get_lang('Course').' : '.$info_course['title'].' | '.api_get_person_name($info_user['lastname'], $info_user['firstname']);
$info_course = CourseManager :: get_course_information($get_course_code);
$session_name = api_get_session_name($session_id);
$table_title = ($session_name? get_lang('Session').' : '.$session_name.' | ':'').($info_course ?get_lang('Course').' : '.$info_course['title'].' | ':'').api_get_person_name($info_user['lastname'], $info_user['firstname']);
echo '<h2>'.$table_title.'</h2>';
?>

Loading…
Cancel
Save