aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r--include/functions_html.inc.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 4b456ca7b..4c68aa019 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -133,13 +133,15 @@ function style_select($default_style, $select_name = "style")
{
$templates = get_templates();
+ $style_selected = '<select name="' . $select_name . '" >';
foreach ($templates as $template)
{
$selected = ( $template == $default_style ) ? ' selected="selected"' : '';
- $style_select.= '<option value="'.$template.'"'.$selected.'>';
- $style_select.= $template.'</option>';
+ $style_selected.= '<option value="'.$template.'"'.$selected.'>';
+ $style_selected.= $template.'</option>';
}
- return $style_select;
+ $style_selected .= '</select>';
+ return $style_selected;
}
// The function get_cat_display_name returns a string containing the list