1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

Issue #2846 lanVar Cleanup

This commit is contained in:
Cameron
2017-11-06 13:24:05 -08:00
parent 2c23bd6cd6
commit 52f05cc3ed
5 changed files with 70 additions and 35 deletions

View File

@@ -1988,7 +1988,8 @@ class e_userperms
if(!$sysuser->isAdmin())
{
$sysuser->set('user_admin', 1)->save();
$lan = str_replace(array('--UID--', '--NAME--', '--EMAIL--'), array($sysuser->getId(), $sysuser->getName(), $sysuser->getValue('email')), USRLAN_164);
$vars = array('x'=>$sysuser->getId(), 'y'=> $sysuser->getName(), 'z'=>$sysuser->getValue('email'));
$lan = e107::getParser()->lanVars( USRLAN_164, $vars);
e107::getLog()->add('USET_08', $lan, E_LOG_INFORMATIVE);
}