Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
otrok7 committed Jun 11, 2024
1 parent 1dfc313 commit 7620272
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bmlt-meeting-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,10 @@ function bmlt_meeting_list($atts = null, $content = null)
$mpdf_init_options = array_merge($mpdf_init_options, $page_type_settings);
$mpdf_init_options = apply_filters("Bread_Mpdf_Init_Options", $mpdf_init_options, $this->options);
ob_end_clean();
// We load mPDF only when we need to and as late as possible. This prevents
// conflicts with other plugins that use the same PSRs in different versions
// by simply clobbering the other definitions. Since we generate the PDF then
// die, we shouldn't create any conflicts ourselves.
require_once plugin_dir_path(__FILE__).'mpdf/vendor/autoload.php';
$this->mpdf = new mPDF($mpdf_init_options);
$this->mpdf->setAutoBottomMargin = 'pad';
Expand Down

0 comments on commit 7620272

Please sign in to comment.