There are no empty/drop tabs anymore

This commit is contained in:
Michal Čihař
2011-03-18 14:52:08 +01:00
parent 7899b0f199
commit 24396fe024

View File

@@ -1660,10 +1660,7 @@ function PMA_generate_html_tab($tab, $url_params = array())
// determine additionnal style-class // determine additionnal style-class
if (empty($tab['class'])) { if (empty($tab['class'])) {
if ($tab['text'] == __('Empty') if (! empty($tab['active'])
|| $tab['text'] == __('Drop')) {
$tab['class'] = 'caution';
} elseif (! empty($tab['active'])
|| PMA_isValid($GLOBALS['active_page'], 'identical', $tab['link'])) { || PMA_isValid($GLOBALS['active_page'], 'identical', $tab['link'])) {
$tab['class'] = 'active'; $tab['class'] = 'active';
} elseif (is_null($tab['active']) && empty($GLOBALS['active_page']) } elseif (is_null($tab['active']) && empty($GLOBALS['active_page'])