diff --git a/ChangeLog b/ChangeLog index 47da114ce..bcd1d2ba2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #2461735 [operations] Table operations adds "row_format" - bug #2445213 [export] Commas for CSV Excel 2008 for Mac - bug #2397877 [core] ForceSSL and http auth_type +- bug #2473127 [display] Deleting rows displays tbl structure, not contents 3.1.1.0 (2008-12-09) - patch #2242765 [core] Navi panel server links wrong, diff --git a/libraries/common.lib.php b/libraries/common.lib.php index eae98043b..4c322d78c 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1500,10 +1500,11 @@ function PMA_localisedDate($timestamp = -1, $format = '') * @uses array_merge() * @uses basename() * @param array $tab array with all options + * @param array $url_params * @return string html code for one tab, a link if valid otherwise a span * @access public */ -function PMA_getTab($tab) +function PMA_getTab($tab, $url_params = array()) { // default values $defaults = array( @@ -1543,9 +1544,7 @@ function PMA_getTab($tab) // build the link if (!empty($tab['link'])) { $tab['link'] = htmlentities($tab['link']); - $tab['link'] = $tab['link'] . $tab['sep'] - .(empty($GLOBALS['url_query']) ? - PMA_generate_common_url() : $GLOBALS['url_query']); + $tab['link'] = $tab['link'] . PMA_generate_common_url($url_params); if (! empty($tab['args'])) { foreach ($tab['args'] as $param => $value) { $tab['link'] .= PMA_get_arg_separator('html') . urlencode($param) . '=' @@ -1596,17 +1595,18 @@ function PMA_getTab($tab) * @uses PMA_getTab() * @uses htmlentities() * @param array $tabs one element per tab - * @param string $tag_id id used for the html-tag + * @param array $url_params * @return string html-code for tab-navigation */ -function PMA_getTabs($tabs, $tag_id = 'topmenu') +function PMA_getTabs($tabs, $url_params) { + $tag_id = 'topmenu'; $tab_navigation = '
' . "\n" .'