should go to ['userconf']
This commit is contained in:
@@ -906,7 +906,7 @@ function PMA_reloadNavigation()
|
|||||||
// in this case, get rid of the table limit offset, otherwise
|
// in this case, get rid of the table limit offset, otherwise
|
||||||
// we have a problem when dropping a table on the last page
|
// we have a problem when dropping a table on the last page
|
||||||
// and the offset becomes greater than the total number of tables
|
// and the offset becomes greater than the total number of tables
|
||||||
unset($_SESSION['table_limit_offset']);
|
unset($_SESSION['userconf']['table_limit_offset']);
|
||||||
echo "\n";
|
echo "\n";
|
||||||
$reload_url = './navigation.php?' . PMA_generate_common_url($GLOBALS['db'], '', '&');
|
$reload_url = './navigation.php?' . PMA_generate_common_url($GLOBALS['db'], '', '&');
|
||||||
?>
|
?>
|
||||||
|
@@ -42,13 +42,13 @@ require_once './libraries/common.inc.php';
|
|||||||
/**
|
/**
|
||||||
* limits for table list
|
* limits for table list
|
||||||
*/
|
*/
|
||||||
if (! isset($_SESSION['table_limit_offset'])) {
|
if (! isset($_SESSION['userconf']['table_limit_offset'])) {
|
||||||
$_SESSION['table_limit_offset'] = 0;
|
$_SESSION['userconf']['table_limit_offset'] = 0;
|
||||||
}
|
}
|
||||||
if (isset($_REQUEST['pos'])) {
|
if (isset($_REQUEST['pos'])) {
|
||||||
$_SESSION['table_limit_offset'] = (int) $_REQUEST['pos'];
|
$_SESSION['userconf']['table_limit_offset'] = (int) $_REQUEST['pos'];
|
||||||
}
|
}
|
||||||
$pos = $_SESSION['table_limit_offset'];
|
$pos = $_SESSION['userconf']['table_limit_offset'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fills given tooltip arrays
|
* fills given tooltip arrays
|
||||||
|
@@ -269,7 +269,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
|
|||||||
* user can find a navigator to page thru all tables.
|
* user can find a navigator to page thru all tables.
|
||||||
*
|
*
|
||||||
* @todo instead of the 0 parameter, keep track of the
|
* @todo instead of the 0 parameter, keep track of the
|
||||||
* offset in the list of tables ($_SESSION['navi_table_limit_offset'])
|
* offset in the list of tables ($_SESSION['userconf']['table_limit_offset'])
|
||||||
* and use PMA_listNavigator(); do not just check pos in REQUEST
|
* and use PMA_listNavigator(); do not just check pos in REQUEST
|
||||||
* but add another hidden param to see if it's the pos of databases
|
* but add another hidden param to see if it's the pos of databases
|
||||||
* or the pos of tables.
|
* or the pos of tables.
|
||||||
|
Reference in New Issue
Block a user