bug fix for listing the css options.

use SELECTED="SELECTED" instead of just SELECTED
pull/614/head
Isaac Connor 2014-12-01 15:58:00 -05:00
parent fed12291be
commit af0d9a1065
1 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ if($tab == 'skins') {
<?php
foreach(glob('skins/*',GLOB_ONLYDIR) as $dir) {
$dir = basename($dir);
echo '<option value="'.$dir.'" '.($current_skin==$dir ? 'SELECTED' : '').'>'.$dir.'</option>';
echo '<option value="'.$dir.'" '.($current_skin==$dir ? 'SELECTED="SELECTED"' : '').'>'.$dir.'</option>';
}
?>
</select>
@ -123,9 +123,9 @@ if($tab == 'skins') {
<td><?php echo $SLANG['CSSDescription']; ?></td>
<td><select name="css-choice">
<?php
foreach(glob('skins/'.$current_css.'/*',GLOB_ONLYDIR) as $dir) {
foreach(glob('skins/'.$current_skin.'/css/*',GLOB_ONLYDIR) as $dir) {
$dir = basename($dir);
echo '<option value="'.$dir.'" '.($current_css==$dir ? 'SELECTED' : '').'>'.$dir.'</option>';
echo '<option value="'.$dir.'" '.($current_css==$dir ? 'SELECTED="SELECTED"' : '').'>'.$dir.'</option>';
}
?>
</select>