Browse Source

Remove custom header see BT#12959

jmontoyaa 7 years ago
parent
commit
b8d4448825

+ 2 - 2
main/gradebook/gradebook_display_summary.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,

+ 2 - 4
main/gradebook/lib/GradebookUtils.php

@@ -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,