diff --git a/bmlt-meeting-list.php b/bmlt-meeting-list.php index ef90aa2..35fa9d6 100644 --- a/bmlt-meeting-list.php +++ b/bmlt-meeting-list.php @@ -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';