diff --git a/ChangeLog b/ChangeLog index 9272b6ef1..ee09154e6 100755 --- a/ChangeLog +++ b/ChangeLog @@ -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 * queryframe.php3: Remove left/bottom margin to better fit the link title diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index 8fd397980..5a6509ded 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -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';