Commits

Jesse Terry committed 7258da3

Adjustment for mPDF 5.1

Comments (0)

Files changed (1)

application/helpers/mpdf_helper.php

 
 	$CI =& get_instance();
 
-	$CI->load->module('mcb_language');
+    $mpdf = new mPDF();
 
-	$charset = $CI->mcb_language->languages[$CI->mdl_mcb_data->setting('default_language')]['charset'];
+    $mpdf->SetAutoFont();
 
-	$mpdf = new mPDF($charset);
-
-	$mpdf->charset_in='utf-8';
-
-	$mpdf->default_font = 'FreeSans';
-
-	$mpdf->WriteHTML($html);
+    $mpdf->WriteHTML($html);
 
 	if ($stream) {