diff --git a/inc/form.class.php b/inc/form.class.php index 76e526bb6..b9abd3b1d 100644 --- a/inc/form.class.php +++ b/inc/form.class.php @@ -1177,7 +1177,12 @@ public function displayUserForm() { } // Print css media - echo Html::css(FORMCREATOR_ROOTDOC . "/css/print_form.css", ['media' => 'print']); + if (method_exists(Plugin::class, 'getWebDir')) { + $css = '/' . Plugin::getWebDir('formcreator', false) . '/css/print_form.css'; + } else { + $css = '/plugins/formcreator/css/print_form.css'; + } + echo Html::css($css, ['media' => 'print']); // Display form $formName = 'plugin_formcreator_form';