Browse Source

Merge pull request #22 from jmontoyaa/1.9.x

Fixing teacher name in course list see #5991
Julio Montoya 12 years ago
parent
commit
7540f2eab7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      main/inc/lib/userportal.lib.php

+ 3 - 3
main/inc/lib/userportal.lib.php

@@ -432,8 +432,8 @@ class IndexManager {
 		$thereIsSubCat = false;
 		if (Database::num_rows($resCats) > 0) {
 		    $htmlListCat = Display::page_header(get_lang('CatList'));
-        $htmlListCat .= '<ul>';
-        $htmlTitre = '';
+            $htmlListCat .= '<ul>';
+            $htmlTitre = '';
 			  while ($catLine = Database::fetch_array($resCats)) {
 				    $category_has_open_courses = self::category_has_open_courses($catLine['code']);
 				    if ($category_has_open_courses) {
@@ -504,7 +504,7 @@ class IndexManager {
 							$course_details[] = $course['visual_code'];
 						}
 						if (api_get_setting('display_teacher_in_courselist') == 'true') {
-							$course_details[] = $course['tutor_name'];
+							$course_details[] = CourseManager::get_teacher_list_from_course_code_to_string($course['code']);
 						}
 						if (api_get_setting('show_different_course_language') == 'true' && $course['course_language'] != api_get_setting('platformLanguage')) {
 							$course_details[] = $course['course_language'];