This commit is contained in:
Laurent Destailleur
2026-01-21 19:19:36 +01:00
parent 585c4ae04e
commit 4e9965ea70

View File

@@ -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");
}