mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Issue #3509 Quick fix. Needs further refinement to avoid false positives.
This commit is contained in:
@@ -78,6 +78,35 @@ e107::getLanguage()->bcDefs($bcDefs);
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param array $parm
|
||||||
|
* @return null|string
|
||||||
|
*/
|
||||||
|
function sc_lm_active($parm=array())
|
||||||
|
{
|
||||||
|
// $request = e_REQUEST_URI;
|
||||||
|
|
||||||
|
$ret = null;
|
||||||
|
|
||||||
|
$mode = varset($parm['mode']);
|
||||||
|
|
||||||
|
if($mode === 'usersettings' && e_PAGE === 'usersettings.php')
|
||||||
|
{
|
||||||
|
return 'active';
|
||||||
|
}
|
||||||
|
elseif($mode === 'profile' && e_PAGE === 'user.php')
|
||||||
|
{
|
||||||
|
return 'active';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function sc_lm_username_input($parm='')
|
function sc_lm_username_input($parm='')
|
||||||
{
|
{
|
||||||
$pref = e107::getPref();
|
$pref = e107::getPref();
|
||||||
|
@@ -198,8 +198,8 @@ if ( ! isset($LOGIN_MENU_LOGGED))
|
|||||||
<ul class="login-menu-logged nav nav-list">
|
<ul class="login-menu-logged nav nav-list">
|
||||||
{LM_MAINTENANCE}
|
{LM_MAINTENANCE}
|
||||||
{LM_ADMINLINK}
|
{LM_ADMINLINK}
|
||||||
<li class="login-menu-usersettings">{LM_USERSETTINGS}</li>
|
<li class="login-menu-usersettings {LM_ACTIVE: mode=usersettings}">{LM_USERSETTINGS}</li>
|
||||||
<li class="login-menu-profile">{LM_PROFILE}</li>
|
<li class="login-menu-profile {LM_ACTIVE: mode=profile}">{LM_PROFILE}</li>
|
||||||
{LM_ADMIN_CONFIGURE}
|
{LM_ADMIN_CONFIGURE}
|
||||||
{LM_EXTERNAL_LINKS}
|
{LM_EXTERNAL_LINKS}
|
||||||
{LM_LOGOUT}
|
{LM_LOGOUT}
|
||||||
|
Reference in New Issue
Block a user