Fix log
This commit is contained in:
parent
585c4ae04e
commit
4e9965ea70
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue