Remove custom header see BT#12959

pull/2487/head
jmontoyaa 8 years ago
parent 9c6aeb4eab
commit b8d4448825
  1. 4
      main/gradebook/gradebook_display_summary.php
  2. 6
      main/gradebook/lib/GradebookUtils.php

@ -83,10 +83,10 @@ switch ($action) {
if (!empty($pdfList)) {
// Print certificates (without the common header/footer/watermark
// stuff) and return as one multiple-pages PDF
$address = api_get_setting('institution_address');
/*$address = api_get_setting('institution_address');
$phone = api_get_setting('administratorTelephone');
$address = str_replace('\n', '<br />', $address);
$pdf->custom_header = array('html' => "<h5 align='right'>$address <br />$phone</h5>");
$pdf->custom_header = array('html' => "<h5 align='right'>$address <br />$phone</h5>");*/
// stuff) and return as one multiple-pages PDF
$pdf->html_to_pdf(
$pdfList,

@ -1467,7 +1467,6 @@ class GradebookUtils
}
$pdf->params['student_info'] = $userInfo;
$file = api_get_path(SYS_ARCHIVE_PATH).uniqid().'.html';
$content =
@ -1476,12 +1475,11 @@ class GradebookUtils
'<br />'.get_lang('Feedback').'<br />
<textarea rows="5" cols="100" ></textarea>';
$address = api_get_setting('institution_address');
/*$address = api_get_setting('institution_address');
$phone = api_get_setting('administratorTelephone');
$address = str_replace('\n', '<br />', $address);
$pdf->custom_header = array('html' => "<h5 align='right'>$address <br />$phone</h5>");
$pdf->custom_header = array('html' => "<h5 align='right'>$address <br />$phone</h5>");*/
$result = $pdf->html_to_pdf_with_template(
$content,
$saveToFile,

Loading…
Cancel
Save