Fix active tab detection

Issue #13266

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-05-15 10:38:23 +02:00
parent e6f88fdcfc
commit 6390541ecc

View File

@ -19,14 +19,16 @@ function PMA_getHtmlForSubMenusOnUsersPage($selfUrl)
$items = array(
array(
'name' => __('User accounts overview'),
'url' => 'server_privileges.php' . URL::getCommon(array('viewing_mode' => 'server')),
'url' => 'server_privileges.php',
'params' => URL::getCommon(array('viewing_mode' => 'server')),
)
);
if ($GLOBALS['is_superuser']) {
$items[] = array(
'name' => __('User groups'),
'url' => 'server_user_groups.php' . URL::getCommon(),
'url' => 'server_user_groups.php',
'params' => URL::getCommon(),
);
}
@ -38,7 +40,7 @@ function PMA_getHtmlForSubMenusOnUsersPage($selfUrl)
}
$retval .= '<li>';
$retval .= '<a' . $class;
$retval .= ' href="' . $item['url'] . '">';
$retval .= ' href="' . $item['url'] . $item['params'] . '">';
$retval .= $item['name'];
$retval .= '</a>';
$retval .= '</li>';