Generate reload params on place where they are used.
This fixes reloading navigation frame when database is selected.
This commit is contained in:
@@ -101,6 +101,10 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) {
|
|||||||
echo '</a>';
|
echo '</a>';
|
||||||
echo ' ' . PMA_showMySQLDocu('', '', TRUE) . "\n";
|
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">';
|
echo '<a href="navigation.php?' . PMA_generate_common_url($params) . '" target="frame_navigation">';
|
||||||
if ($GLOBALS['cfg']['MainPageIconic']) {
|
if ($GLOBALS['cfg']['MainPageIconic']) {
|
||||||
echo '<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 's_reload.png"'
|
echo '<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 's_reload.png"'
|
||||||
|
@@ -49,10 +49,6 @@ require_once './libraries/common.inc.php';
|
|||||||
*/
|
*/
|
||||||
function PMA_exitNavigationFrame()
|
function PMA_exitNavigationFrame()
|
||||||
{
|
{
|
||||||
$params = array('uniqid' => uniqid());
|
|
||||||
if (!empty($GLOBALS['db'])) {
|
|
||||||
$params['db'] = $GLOBALS['db'];
|
|
||||||
}
|
|
||||||
echo '</body></html>';
|
echo '</body></html>';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user