From 0ec94ce80089b53563333eed1a1926492d1b36d1 Mon Sep 17 00:00:00 2001 From: MikeyGMT <mikeygmt@gmail.com> Date: Mon, 5 Dec 2016 01:18:15 +0000 Subject: [PATCH] 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. --- e107_admin/auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_admin/auth.php b/e107_admin/auth.php index 3a417fa25..fe9f01099 100644 --- a/e107_admin/auth.php +++ b/e107_admin/auth.php @@ -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