diff options
author | gweltas <gweltas@piwigo.org> | 2004-09-07 20:10:36 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-09-07 20:10:36 +0000 |
commit | eaad1d61d71e48359fe7b3abfdd91f27f5f33a1b (patch) | |
tree | f4fc3d36d0c0bf43b336730d3ccb758adb3b96aa /include/functions_html.inc.php | |
parent | 47a1e49c1e7b09403ce567f30c31a15856a8fdae (diff) |
Minor bugs correction
git-svn-id: http://piwigo.org/svn/trunk@519 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_html.inc.php | 8 |
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 |