Highlight tab also when current page is read_dump.php3 and $goto is link of current tab.

This commit is contained in:
Michal Čihař
2003-05-13 11:16:30 +00:00
parent 9fdea166e3
commit 1c7f574d3a
2 changed files with 6 additions and 2 deletions

View File

@@ -23,6 +23,8 @@ $Source$
* libraries/relation.lib.php3: Fixed warning in PMA_purgeHistory.
* ldi_check.php3, lang/*: Behave correctly if no file is given for loading.
* read_dump.php3: Correctly checks whether table exists.
* libraries/common.lib.php3: Highlight tab also when current page is
read_dump.php3 and $goto is link of current tab.
2003-05-12 Garvin Hicking <me@supergarv.de>
* queryframe.php3: Remove left/bottom margin to better fit the link title

View File

@@ -1678,8 +1678,10 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
global $PHP_SELF, $cfg;
global $db_details_links_count_tabs;
if ((basename($PHP_SELF) == $link || $active)
&& ($text != $GLOBALS['strEmpty'] && $text != $GLOBALS['strDrop'])) {
if ((basename($PHP_SELF) == $link ||
$active ||
(isset($GLOBALS['goto']) && basename($PHP_SELF) == 'read_dump.php3' && $GLOBALS['goto'] == $link)
) && ($text != $GLOBALS['strEmpty'] && $text != $GLOBALS['strDrop'])) {
$bgcolor = 'silver';
} else {
$bgcolor = '#DFDFDF';