mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-15 21:45:21 +02:00
update plugins to return values instead of echo, fix config file cache
to include global config variables in cache file
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
*/
|
||||
function smarty_function_html_options($params, &$smarty)
|
||||
{
|
||||
$print_result = true;
|
||||
|
||||
extract($params);
|
||||
|
||||
$html_result = '';
|
||||
@@ -35,10 +33,7 @@ function smarty_function_html_options($params, &$smarty)
|
||||
}
|
||||
}
|
||||
|
||||
if ($print_result)
|
||||
print $html_result;
|
||||
else
|
||||
return $html_result;
|
||||
return $html_result;
|
||||
}
|
||||
|
||||
function smarty_function_html_options_optoutput($key, $value, $selected) {
|
||||
|
Reference in New Issue
Block a user