Fix pdf name BT#16844

pull/3140/head
Julio Montoya 6 years ago
parent 154c20e760
commit 1b42b0f914
  1. 8
      main/mySpace/access_details_session.php

@ -369,13 +369,13 @@ if ($form->validate()) {
'orientation' => 'P',
];
$pdfName = api_strtoupper($userInfo['lastname'].'_'.$userInfo['firstname']).'_'.api_get_local_time();
@$pdf = new PDF('A4', $params['orientation'], $params);
@$pdf->setBackground($tpl->theme);
@$pdf->content_to_pdf(
$content,
'',
'',
$pdfName,
null,
'D',
false,
@ -512,13 +512,13 @@ if ($formByDay->validate()) {
'show_teacher_as_myself' => false,
'orientation' => 'P',
];
$pdfName = api_strtoupper($userInfo['lastname'].'_'.$userInfo['firstname']).'_'.api_get_local_time();
@$pdf = new PDF('A4', $params['orientation'], $params);
@$pdf->setBackground($tpl->theme);
@$pdf->content_to_pdf(
$content,
'',
'',
$pdfName,
null,
'D',
false,

Loading…
Cancel
Save