|
@@ -63,7 +63,8 @@ class InterfaceLogevents extends DolibarrTriggers
|
|
|
if ($action == 'USER_LOGIN')
|
|
|
{
|
|
|
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
|
|
|
-
|
|
|
+
|
|
|
+ $langs->load("users");
|
|
|
// Initialisation donnees (date,duree,texte,desc)
|
|
|
$text="(UserLogged,".$object->login.")";
|
|
|
$text.=(empty($object->trigger_mesg)?'':' - '.$object->trigger_mesg);
|
|
@@ -82,6 +83,7 @@ class InterfaceLogevents extends DolibarrTriggers
|
|
|
{
|
|
|
dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id);
|
|
|
|
|
|
+ $langs->load("users");
|
|
|
// Initialisation donnees (date,duree,texte,desc)
|
|
|
$text="(UserLogoff,".$object->login.")";
|
|
|
$desc="(UserLogoff,".$object->login.")";
|