mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
revert lables on optgroup tags
This commit is contained in:
@@ -111,7 +111,7 @@ function smarty_function_html_options_optoutput($key, $value, $selected)
|
|||||||
|
|
||||||
function smarty_function_html_options_optgroup($key, $values, $selected)
|
function smarty_function_html_options_optgroup($key, $values, $selected)
|
||||||
{
|
{
|
||||||
$optgroup_html = '<optgroup>' . "\n";
|
$optgroup_html = '<optgroup label="' . smarty_function_escape_special_chars($key) . '">' . "\n";
|
||||||
foreach ($values as $key => $value) {
|
foreach ($values as $key => $value) {
|
||||||
$optgroup_html .= smarty_function_html_options_optoutput($key, $value, $selected);
|
$optgroup_html .= smarty_function_html_options_optoutput($key, $value, $selected);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user