From 4e9965ea700b4f6a0e577ae118e5bf028ed69a6a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 21 Jan 2026 19:19:36 +0100 Subject: [PATCH] Fix log --- htdocs/core/class/commontrigger.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/commontrigger.class.php b/htdocs/core/class/commontrigger.class.php index 04e1acab9d4..4b48f74741a 100644 --- a/htdocs/core/class/commontrigger.class.php +++ b/htdocs/core/class/commontrigger.class.php @@ -93,9 +93,10 @@ trait CommonTrigger } } if (!is_object($langs)) { // If lang was not defined, we set it. It is required by run_triggers(). - dol_syslog("call_trigger was called with no langs variable defined".getCallerInfoString(), LOG_WARNING); + dol_syslog("call_trigger was called with no langs variable defined so we init one. ".getCallerInfoString()); include_once DOL_DOCUMENT_ROOT.'/core/class/translate.class.php'; $langs = new Translate('', $conf); + $langs->setDefaultLang(''); $langs->load("main"); }