Browse Source

Minor - Fixing session name

Julio Montoya 14 years ago
parent
commit
9ff445686d
2 changed files with 9 additions and 2 deletions
  1. 1 0
      main/mySpace/lp_tracking.php
  2. 8 2
      main/mySpace/myStudents.php

+ 1 - 0
main/mySpace/lp_tracking.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>';

+ 8 - 2
main/mySpace/myStudents.php

@@ -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>';
 
 ?>