From 5e21ce7706c5814bdae866519c1a3758782cca18 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 19 Oct 2020 12:46:26 +0200 Subject: [PATCH] Minor - fix title --- main/mySpace/myStudents.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php index bcfad8e688..b3d409f42f 100755 --- a/main/mySpace/myStudents.php +++ b/main/mySpace/myStudents.php @@ -278,6 +278,7 @@ switch ($action) { $first = Tracking::get_first_connection_date($student_id); $last = Tracking::get_last_connection_date($student_id); $timeSpentContent = ''; + $pdfTitle = get_lang('AttestationOfAttendance'); if ('attendance' === $type) { $table = new HTML_Table(['class' => 'table table-hover table-striped data_table']); $column = 0; @@ -299,6 +300,8 @@ switch ($action) { $table->setCellContents(1, 3, $first); $table->setCellContents(1, 4, $last); $timeSpentContent = $table->toHtml(); + } else { + $pdfTitle = get_lang('CertificateOfAchievement'); } $courseTable = ''; @@ -399,7 +402,7 @@ switch ($action) { } $tpl = new Template('', false, false, false, true, false, false); - $tpl->assign('title', get_lang('AttestationOfAttendance')); + $tpl->assign('title', $pdfTitle); $tpl->assign('session_title', $sessionInfo['name']); $tpl->assign('session_info', $sessionInfo); $sessionCategoryTitle = '';