Don't offer unavailable collations.

This commit is contained in:
Alexander M. Turek
2005-03-29 18:09:47 +00:00
parent 532c1ee25f
commit e08f775b68
3 changed files with 16 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ foreach ($mysql_charsets as $current_charset) {
$useBgcolorOne = TRUE;
foreach ($mysql_collations[$current_charset] as $current_collation) {
$i++;
echo ' <tr>' . "\n"
echo ' <tr' . ($mysql_collations_available[$current_collation] ? '' : ' class="disabled"') . '>' . "\n"
. ' <td bgcolor="' . ($mysql_default_collations[$current_charset] == $current_collation ? $cfg['BrowseMarkerColor'] : ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo'])) . '">' . "\n"
. ' &nbsp;' . htmlspecialchars($current_collation) . '&nbsp;' . "\n"
. ' </td>' . "\n"