From 712fafb776634ce75bcf6aee8e8664f8c53470c5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Feb 2018 10:07:38 +0100 Subject: [PATCH] code sample --- .../modulebuilder/template/class/actions_mymodule.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/modulebuilder/template/class/actions_mymodule.class.php b/htdocs/modulebuilder/template/class/actions_mymodule.class.php index b0265a28e3f..e11925f075f 100644 --- a/htdocs/modulebuilder/template/class/actions_mymodule.class.php +++ b/htdocs/modulebuilder/template/class/actions_mymodule.class.php @@ -175,7 +175,7 @@ class ActionsMyModule */ function beforePDFCreation($parameters, &$object, &$action) { - global $langs,$conf; + global $conf, $user, $langs; global $hookmanager; $outputlangs=$langs; @@ -204,7 +204,7 @@ class ActionsMyModule */ function afterPDFCreation($parameters, &$pdfhandler, &$action) { - global $langs,$conf; + global $conf, $user, $langs; global $hookmanager; $outputlangs=$langs;