From 24396fe0244bb8e17315b3c3d9bd71f2835dd041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 18 Mar 2011 14:52:08 +0100 Subject: [PATCH] There are no empty/drop tabs anymore --- libraries/common.lib.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 7451df411..bea2c6530 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1660,10 +1660,7 @@ function PMA_generate_html_tab($tab, $url_params = array()) // determine additionnal style-class if (empty($tab['class'])) { - if ($tab['text'] == __('Empty') - || $tab['text'] == __('Drop')) { - $tab['class'] = 'caution'; - } elseif (! empty($tab['active']) + if (! empty($tab['active']) || PMA_isValid($GLOBALS['active_page'], 'identical', $tab['link'])) { $tab['class'] = 'active'; } elseif (is_null($tab['active']) && empty($GLOBALS['active_page'])