PMA_getTab(): use $_SERVER['PHP_SELF']

This commit is contained in:
Sebastian Mendel
2005-12-06 16:08:49 +00:00
parent 055cd43009
commit c1c725f9f3

View File

@@ -1786,10 +1786,10 @@ window.parent.updateTableTitle( '<?php echo $uni_tbl; ?>', '<?php echo PMA_jsFor
|| $tab['text'] == $GLOBALS['strDrop'] ) {
$tab['class'] = 'caution';
}
elseif ( isset( $tab['active'] ) && $tab['active']
|| isset( $GLOBALS['active_page'] )
&& $GLOBALS['active_page'] == $tab['link']
|| basename( $GLOBALS['PHP_SELF'] ) == $tab['link'] )
elseif ( ! empty( $tab['active'] )
|| ( isset( $GLOBALS['active_page'] )
&& $GLOBALS['active_page'] == $tab['link'] )
|| basename( $_SERVER['PHP_SELF'] ) == $tab['link'] )
{
$tab['class'] = 'active';
}