Fix link to User accounts overview page

Fixes #13266

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-05-15 10:25:58 +02:00
parent 51b5258510
commit e6f88fdcfc
2 changed files with 4 additions and 7 deletions

View File

@ -23,6 +23,7 @@ phpMyAdmin - ChangeLog
- issue #13252 Fixed grid editing time column
- issue #13258 Fixed detection of Amazon RDS
- issue #13241 Redirect user to last page that has any tables to display
- issue #13266 Fix link to User accounts overview page
4.7.0 (2017-03-28)
- patch #12233 [Display] Improve message when renaming database to same name

View File

@ -16,20 +16,17 @@ use PMA\libraries\URL;
*/
function PMA_getHtmlForSubMenusOnUsersPage($selfUrl)
{
$url_params = URL::getCommon();
$items = array(
array(
'name' => __('User accounts overview'),
'url' => 'server_privileges.php',
'specific_params' => '&viewing_mode=server'
'url' => 'server_privileges.php' . URL::getCommon(array('viewing_mode' => 'server')),
)
);
if ($GLOBALS['is_superuser']) {
$items[] = array(
'name' => __('User groups'),
'url' => 'server_user_groups.php',
'specific_params' => ''
'url' => 'server_user_groups.php' . URL::getCommon(),
);
}
@ -41,8 +38,7 @@ function PMA_getHtmlForSubMenusOnUsersPage($selfUrl)
}
$retval .= '<li>';
$retval .= '<a' . $class;
$retval .= ' href="' . $item['url']
. $url_params . $item['specific_params'] . '">';
$retval .= ' href="' . $item['url'] . '">';
$retval .= $item['name'];
$retval .= '</a>';
$retval .= '</li>';