Minor - Adding separator parameter in the get_teacher_list_from_course_code_to_string function

skala
Julio Montoya 14 years ago
parent 554bd299a2
commit 736541c5b9
  1. 4
      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;

Loading…
Cancel
Save