mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
fixed html_options to not return an array
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
|||||||
|
- fix html_radios to not return an array (Monte)
|
||||||
- fixed length in modifier.truncate.php (messju)
|
- fixed length in modifier.truncate.php (messju)
|
||||||
- fixed handling of '$'-signs in trimwhitespace outputfilter (messju)
|
- fixed handling of '$'-signs in trimwhitespace outputfilter (messju)
|
||||||
- fix bug that makes config files recompile every time
|
- fix bug that makes config files recompile every time
|
||||||
|
@@ -49,7 +49,7 @@ function smarty_function_html_radios($params, &$smarty)
|
|||||||
}
|
}
|
||||||
|
|
||||||
function smarty_function_html_radios_output($name, $value, $output, $checked, $separator) {
|
function smarty_function_html_radios_output($name, $value, $output, $checked, $separator) {
|
||||||
$_output = '<input type="radio" name="' . smarty_function_escape_special_chars($name) . '[]' .'" value="' . smarty_function_escape_special_chars($value) . '"';
|
$_output = '<input type="radio" name="' . smarty_function_escape_special_chars($name) . '" value="' . smarty_function_escape_special_chars($value) . '"';
|
||||||
|
|
||||||
if (in_array($value, $checked)) {
|
if (in_array($value, $checked)) {
|
||||||
$_output .= " checked=\"checked\"";
|
$_output .= " checked=\"checked\"";
|
||||||
|
Reference in New Issue
Block a user