Minor bugs correction

git-svn-id: http://piwigo.org/svn/trunk@519 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
gweltas 2004-09-07 20:10:36 +00:00
commit eaad1d61d7
10 changed files with 35 additions and 26 deletions

View file

@ -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