From 1c7f574d3a18a30bd2064ceb8d9a7ae0789ac8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 13 May 2003 11:16:30 +0000 Subject: [PATCH] Highlight tab also when current page is read_dump.php3 and $goto is link of current tab. --- ChangeLog | 2 ++ libraries/common.lib.php3 | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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';