Browse Source

Minor - Adding separator parameter in the get_teacher_list_from_course_code_to_string function

Julio Montoya 13 years ago
parent
commit
736541c5b9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/inc/lib/course.lib.php

+ 2 - 2
main/inc/lib/course.lib.php

@@ -1365,7 +1365,7 @@ class CourseManager {
         return $teachers;
     }
     
-    public static function get_teacher_list_from_course_code_to_string($course_code) {
+    public static function get_teacher_list_from_course_code_to_string($course_code, $separator = ',') {
     	$teacher_list = self::get_teacher_list_from_course_code($course_code);
     	$teacher_string = '';
     	$list = array();
@@ -1374,7 +1374,7 @@ class CourseManager {
      			$list[]= api_get_person_name($teacher['firstname'], $teacher['lastname']);    			
     		}
     		if (!empty($list)) {
-    			$teacher_string = implode (', ', $list);
+    			$teacher_string = implode($separator.' ', $list);
     		}
     	}
     	return $teacher_string;