From 76202727f6d45b866cf9d4df6ee2344e6837afc2 Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:13:35 +0200 Subject: [PATCH] Add comment --- bmlt-meeting-list.php | 4 ++++ 1 file changed, 4 insertions(+) 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';