diff --git a/ChangeLog b/ChangeLog index be05a4896..ac905ab31 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-03-30 Michal Cihar + * tbl_indexes.php: Use properly $cfg['PropertiesIconic'] (bug #918072). + 2004-03-29 Marc Delisle * server_privileges.php: bug 923171, password error when copying a user * server_privileges.php: bug 923227, copying a user with table privs diff --git a/tbl_indexes.php b/tbl_indexes.php index 1eeaa0490..f4c3f84cf 100644 --- a/tbl_indexes.php +++ b/tbl_indexes.php @@ -397,6 +397,25 @@ else if (!defined('PMA_IDX_INCLUDED') echo "\n"; echo ' ' . $strIndexes . ' :' . "\n"; echo ' ' . PMA_showMySQLDocu('MySQL_Optimisation', 'Optimising_Database_Structure') . '
' ."\n"; + $edit_link_text = ''; + $drop_link_text = ''; + + // We need to copy the value or else the == 'both' check will always return true + $propicon = (string)$cfg['PropertiesIconic']; + + if ($cfg['PropertiesIconic'] === true || $propicon == 'both') { + $edit_link_text = '' . $strEdit . ''; + $drop_link_text = '' . $strDrop . ''; + } + print_r($cfg['PropertiesIconic']); + if ($cfg['PropertiesIconic'] === false || $propicon == 'both') { + $edit_link_text .= $strEdit; + $drop_link_text .= $strDrop; + } + if ($propicon == 'both') { + $edit_link_text = '' . $edit_link_text . ''; + $drop_link_text = '' . $drop_link_text . ''; + } if ($idx_cnt > 0) { ?> @@ -437,7 +456,7 @@ else if (!defined('PMA_IDX_INCLUDED') . ' ' . "\n"; echo $index_td - . ' ' . ($cfg['PropertiesIconic'] ? '' . $strEdit . '' : $strEdit) . '' . "\n" + . ' ' . $edit_link_text . '' . "\n" . ' ' . "\n"; if ($index_name == 'PRIMARY') { @@ -450,7 +469,7 @@ else if (!defined('PMA_IDX_INCLUDED') $zero_rows = urlencode(sprintf($strIndexHasBeenDropped, htmlspecialchars($index_name))); } echo $index_td - . ' ' . ($cfg['PropertiesIconic'] ? '' . $strDrop . '' : $strDrop) . '' . "\n" + . ' ' . $drop_link_text . '' . "\n" . ' ' . "\n"; foreach($indexes_info[$index_name]['Sequences'] AS $row_no => $seq_index) {