NEW Add key __USER_REMOTE_IP__ into available substitution variables

This commit is contained in:
Laurent Destailleur
2018-01-26 17:00:14 +01:00
parent eb3eee9b6a
commit 6cae36cc33
3 changed files with 7 additions and 2 deletions

View File

@@ -5620,7 +5620,8 @@ function getCommonSubstitutionArray($outputlangs, $onlykey=0, $exclude=null, $ob
'__USER_LASTNAME__' => (string) $user->lastname,
'__USER_FIRSTNAME__' => (string) $user->firstname,
'__USER_FULLNAME__' => (string) $user->getFullName($outputlangs),
'__USER_SUPERVISOR_ID__' => (string) $user->fk_user
'__USER_SUPERVISOR_ID__' => (string) $user->fk_user,
'__USER_REMOTE_IP__' => (string) $_SERVER['REMOTE_ADDR']
)
);
}