Generate reload params on place where they are used.

This fixes reloading navigation frame when database is selected.
This commit is contained in:
Michal Čihař
2011-01-27 10:01:17 +01:00
parent 8252f8a4ca
commit 3d54060945
2 changed files with 4 additions and 4 deletions

View File

@@ -101,6 +101,10 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) {
echo '</a>';
echo ' ' . PMA_showMySQLDocu('', '', TRUE) . "\n";
$params = array('uniqid' => uniqid());
if (!empty($GLOBALS['db'])) {
$params['db'] = $GLOBALS['db'];
}
echo '<a href="navigation.php?' . PMA_generate_common_url($params) . '" target="frame_navigation">';
if ($GLOBALS['cfg']['MainPageIconic']) {
echo '<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 's_reload.png"'

View File

@@ -49,10 +49,6 @@ require_once './libraries/common.inc.php';
*/
function PMA_exitNavigationFrame()
{
$params = array('uniqid' => uniqid());
if (!empty($GLOBALS['db'])) {
$params['db'] = $GLOBALS['db'];
}
echo '</body></html>';
exit;
}