From 6390541eccf29b3d0faa27c37c2fd5e23fb06f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 15 May 2017 10:38:23 +0200 Subject: [PATCH] Fix active tab detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue #13266 Signed-off-by: Michal Čihař --- libraries/server_users.lib.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/server_users.lib.php b/libraries/server_users.lib.php index c4e5c21c44..2100444162 100644 --- a/libraries/server_users.lib.php +++ b/libraries/server_users.lib.php @@ -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 .= '
  • '; $retval .= ''; + $retval .= ' href="' . $item['url'] . $item['params'] . '">'; $retval .= $item['name']; $retval .= ''; $retval .= '
  • ';