diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 81a31ef85..7630610a0 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -901,10 +901,10 @@ if (! defined('PMA_MINIMUM_COMMON')) { /** * some resetting has to be done when switching servers */ - if (isset($_SESSION['previous_server']) && $_SESSION['previous_server'] != $GLOBALS['server']) { - unset($_SESSION ['navi_limit_offset']); + if (isset($_SESSION['userconf']['previous_server']) && $_SESSION['userconf']['previous_server'] != $GLOBALS['server']) { + unset($_SESSION['userconf']['navi_limit_offset']); } - $_SESSION['previous_server'] = $GLOBALS['server']; + $_SESSION['userconf']['previous_server'] = $GLOBALS['server']; } // end server connecting diff --git a/navigation.php b/navigation.php index d04496a71..33969cb07 100644 --- a/navigation.php +++ b/navigation.php @@ -61,13 +61,13 @@ function PMA_exitNavigationFrame() } // keep the offset of the db list in session before closing it -if (! isset($_SESSION['navi_limit_offset'])) { - $_SESSION['navi_limit_offset'] = 0; +if (! isset($_SESSION['userconf']['navi_limit_offset'])) { + $_SESSION['userconf']['navi_limit_offset'] = 0; } if (isset($_REQUEST['pos'])) { - $_SESSION['navi_limit_offset'] = (int) $_REQUEST['pos']; + $_SESSION['userconf']['navi_limit_offset'] = (int) $_REQUEST['pos']; } -$pos = $_SESSION['navi_limit_offset']; +$pos = $_SESSION['userconf']['navi_limit_offset']; // free the session file, for the other frames to be loaded session_write_close(); @@ -100,13 +100,13 @@ $cfgRelation = PMA_getRelationsParam(); */ require_once './libraries/header_http.inc.php'; -if (! isset($_SESSION['navi_limit_offset'])) { - $_SESSION['navi_limit_offset'] = 0; +if (! isset($_SESSION['userconf']['navi_limit_offset'])) { + $_SESSION['userconf']['navi_limit_offset'] = 0; } if (isset($_REQUEST['pos'])) { - $_SESSION['navi_limit_offset'] = (int) $_REQUEST['pos']; + $_SESSION['userconf']['navi_limit_offset'] = (int) $_REQUEST['pos']; } -$pos = $_SESSION['navi_limit_offset']; +$pos = $_SESSION['userconf']['navi_limit_offset']; /* * Displays the frame @@ -188,7 +188,7 @@ if (! $GLOBALS['server']) { getHtmlSelectGrouped(true, $_SESSION['navi_limit_offset'], $GLOBALS['cfg']['MaxDbList']) . "\n"; + echo $GLOBALS['PMA_List_Database']->getHtmlSelectGrouped(true, $_SESSION['userconf']['navi_limit_offset'], $GLOBALS['cfg']['MaxDbList']) . "\n"; echo '' . "\n" @@ -197,7 +197,7 @@ if (! $GLOBALS['server']) { if (! empty($db)) { echo '