mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 21:21:54 +02:00
Further Correction to conversion to lanVars #2109
Further Correction to conversion to lanVars #2109 Note that similar messages are coming from user.php - some duplication.
This commit is contained in:
parent
edfbf0a80e
commit
0ec94ce800
@ -66,11 +66,11 @@ if (ADMIN)
|
||||
// XXX LOGIN AS Temporary solution, we need something smarter, e.g. reserved message stack 'admin' which will be always printed
|
||||
// inside admin area
|
||||
if(e107::getUser()->getSessionDataAs())
|
||||
{ // TODO - lan [logout]?
|
||||
{
|
||||
$asuser = e107::getSystemUser(e107::getUser()->getSessionDataAs(), false);
|
||||
|
||||
$lanVars = array ('x' => ($asuser->getId() ? $asuser->getName().' ('.$asuser->getValue('email').')' : 'unknown')) ;
|
||||
e107::getMessage()->addInfo($tp->lanVars(ADLAN_164, $lanVar).' <a href="'.e_ADMIN_ABS.'users.php?mode=main&action=logoutas">['.LAN_LOGOUT.']</a>');
|
||||
e107::getMessage()->addInfo($tp->lanVars(ADLAN_164, $lanVars).' <a href="'.e_ADMIN_ABS.'users.php?mode=main&action=logoutas">['.LAN_LOGOUT.']</a>');
|
||||
|
||||
}
|
||||
// NEW, legacy 3rd party code fix, header called inside the footer o.O
|
||||
|
Loading…
x
Reference in New Issue
Block a user