Fixing the PDF header see #3294

skala
Julio Montoya 14 years ago
parent 037062e203
commit 0cea08caea
  1. 17
      main/inc/lib/pdf.lib.php

@ -411,11 +411,18 @@ class PDF {
if (!empty($course_data['code'])) {
$teacher_list = CourseManager::get_teacher_list_from_course_code($course_data['code']);
$teachers = '';
foreach($teacher_list as $teacher) {
$teachers .=$teacher['firstname'].' '.$teacher['lastname'];
}
//$my_header = self::get_header($course_code);
if (!empty($teacher_list)) {
foreach($teacher_list as $teacher) {
//$teachers[]= api_get_person_name($teacher['firstname'], $teacher['lastname']);
$teachers[]= $teacher['firstname'].' '.$teacher['lastname'];
}
if (count($teachers) > 1) {
$teachers = get_lang('Teachers').': '.implode(', ', $teachers);
} else {
$teachers = get_lang('Teacher').': '.implode('', $teachers);
}
}
$left_content = '';
$center_content = '';
$right_content = $teachers;

Loading…
Cancel
Save